Set-LMAlertRule
Syntax
Section titled “Syntax”Id (Default)
Section titled “Id (Default)”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>]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>]Description
Section titled “Description”The Set-LMAlertRule function modifies an existing alert rule in LogicMonitor.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Set-LMAlertRule -Id 123 -Name "Updated Rule" -Priority 100 -EscalatingChainId 456Updates the alert rule with new name, priority and escalation chain.Parameters
Section titled “Parameters”Specifies the ID of the alert rule to modify.
Type: Int32Parameter Sets: IdAliases:
Required: TruePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: FalseType: Int32Parameter Sets: NameAliases:
Required: FalsePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: FalseSpecifies the name for the alert rule.
Type: StringParameter Sets: NameAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-NewName
Section titled “-NewName”Specifies the new name for the alert rule.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Priority
Section titled “-Priority”Specifies the priority level for the alert rule. Valid values: “High”, “Medium”, “Low”.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False-EscalatingChainId
Section titled “-EscalatingChainId”Specifies the ID of the escalation chain to use.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False-EscalationInterval
Section titled “-EscalationInterval”Specifies the escalation interval in minutes.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False-ResourceProperties
Section titled “-ResourceProperties”Specifies resource properties to filter on.
Type: HashtableParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Devices
Section titled “-Devices”Specifies an array of device display names to apply the rule to.
Type: String[]Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-DeviceGroups
Section titled “-DeviceGroups”Specifies an array of device group full paths to apply the rule to.
Type: String[]Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-DataSource
Section titled “-DataSource”Specifies the datasource name to apply the rule to.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-DataSourceInstanceName
Section titled “-DataSourceInstanceName”Specifies the instance name to apply the rule to.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-DataPoint
Section titled “-DataPoint”Specifies the datapoint name to apply the rule to.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-SuppressAlertClear
Section titled “-SuppressAlertClear”Indicates whether to suppress alert clear notifications.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False-SuppressAlertAckSdt
Section titled “-SuppressAlertAckSdt”Indicates whether to suppress alert acknowledgement and SDT notifications.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False-LevelStr
Section titled “-LevelStr”Specifies the level string for the alert rule. Valid values: “All”, “Critical”, “Error”, “Warning”.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Description
Section titled “-Description”Specifies the description for the alert rule.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-WhatIf
Section titled “-WhatIf”Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameterParameter Sets: (All)Aliases: wi
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: SwitchParameterParameter Sets: (All)Aliases: cf
Required: FalsePosition: NamedDefault value: NoneAccept 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.
Inputs
Section titled “Inputs”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.”Outputs
Section titled “Outputs”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.