Send-LMWebhookMessage
Syntax
Section titled “Syntax”Send-LMWebhookMessage [-SourceName] <String> [-Messages] <Object[]> [[-Properties] <Hashtable>] [-PassThru] [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “Description”The Send-LMWebhookMessage function submits webhook messages to LogicMonitor for ingestion via the Webhook LogSource endpoint. Provide an array of events to transmit; each entry is converted into a JSON payload. Optional common properties can be merged into every event to support downstream parsing in LogicMonitor.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Send-LMWebhookMessage -SourceName "Meraki_CustomerA" -Events $Messages -Properties @{ accountId = '12345' }Sends each event in `$Messages` to the Meraki webhook LogSource, appending the `accountId` property to every payload.Parameters
Section titled “Parameters”-SourceName
Section titled “-SourceName”Specifies the LogicMonitor LogSource identifier used in the ingest URL. This typically matches the sourceName configured in LogicMonitor.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Messages
Section titled “-Messages”Specifies the collection of messages/events to send. Each item may be a hashtable, PSCustomObject, or simple value.
Type: Object[]Parameter Sets: (All)Aliases:
Required: TruePosition: 2Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Properties
Section titled “-Properties”Specifies additional key/value pairs that are merged into every event payload before sending.
Type: HashtableParameter Sets: (All)Aliases:
Required: FalsePosition: 3Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-PassThru
Section titled “-PassThru”Returns PSCustomObject entries containing status, payload, and optional error details for each attempted message.
Type: SwitchParameterParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.