Skip to content

Set-LMAlertRule

Terminal window
Set-LMAlertRule -Id <Int32> [-NewName <String>] [-Priority <Int32>] [-EscalatingChainId <Int32>]
[-EscalationInterval <Int32>] [-ResourceProperties <Hashtable>] [-Devices <String[]>]
[-DeviceGroups <String[]>] [-DataSource <String>] [-DataSourceInstanceName <String>] [-DataPoint <String>]
[-SuppressAlertClear <Boolean>] [-SuppressAlertAckSdt <Boolean>] [-LevelStr <String>] [-Description <String>]
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Terminal window
Set-LMAlertRule [-Id <Int32>] -Name <String> [-NewName <String>] [-Priority <Int32>]
[-EscalatingChainId <Int32>] [-EscalationInterval <Int32>] [-ResourceProperties <Hashtable>]
[-Devices <String[]>] [-DeviceGroups <String[]>] [-DataSource <String>] [-DataSourceInstanceName <String>]
[-DataPoint <String>] [-SuppressAlertClear <Boolean>] [-SuppressAlertAckSdt <Boolean>] [-LevelStr <String>]
[-Description <String>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]

The Set-LMAlertRule function modifies an existing alert rule in LogicMonitor.

Terminal window
Set-LMAlertRule -Id 123 -Name "Updated Rule" -Priority 100 -EscalatingChainId 456
Updates the alert rule with new name, priority and escalation chain.

Specifies the ID of the alert rule to modify.

Type: Int32
Parameter Sets: Id
Aliases:
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
Type: Int32
Parameter Sets: Name
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

Specifies the name for the alert rule.

Type: String
Parameter Sets: Name
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the new name for the alert rule.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the priority level for the alert rule. Valid values: “High”, “Medium”, “Low”.

Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

Specifies the ID of the escalation chain to use.

Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

Specifies the escalation interval in minutes.

Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

Specifies resource properties to filter on.

Type: Hashtable
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies an array of device display names to apply the rule to.

Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies an array of device group full paths to apply the rule to.

Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the datasource name to apply the rule to.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the instance name to apply the rule to.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the datapoint name to apply the rule to.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Indicates whether to suppress alert clear notifications.

Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

Indicates whether to suppress alert acknowledgement and SDT notifications.

Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

Specifies the level string for the alert rule. Valid values: “All”, “Critical”, “Error”, “Warning”.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the description for the alert rule.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Fill ProgressAction Description

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

You can pipe alert rule objects containing Id properties to this function.

Section titled “You can pipe alert rule objects containing Id properties to this function.”

Returns the response from the API containing the updated alert rule information.

Section titled “Returns the response from the API containing the updated alert rule information.”

This function requires a valid LogicMonitor API authentication.