New-LMAlertRule
Syntax
Section titled “Syntax”__AllParameterSets
Section titled “__AllParameterSets”New-LMAlertRule [-Name] <string> [-Priority] <int> [-EscalatingChainId] <int> [[-EscalationInterval] <int>] [[-ResourceProperties] <hashtable>] [[-Devices] <string[]>] [[-DeviceGroups] <string[]>] [[-DataSource] <string>] [[-Instance] <string>] [[-DataPoint] <string>] [[-SuppressAlertClear] <bool>] [[-SuppressAlertAckSdt] <bool>] [[-LevelStr] <string>] [[-Description] <string>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The New-LMAlertRule function creates a new alert rule in LogicMonitor.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”New-LMAlertRule -Name "New Rule" -Priority 100 -EscalatingChainId 456Creates a new alert rule with specified name, priority and escalation chain.
Parameters
Section titled “Parameters”-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- cfParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DataPoint
Section titled “-DataPoint”Specifies the datapoint name to apply the rule to.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 9 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DataSource
Section titled “-DataSource”Specifies the datasource name to apply the rule to.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 7 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Description
Section titled “-Description”Specifies the description for the alert rule.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 13 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DeviceGroups
Section titled “-DeviceGroups”Specifies an array of device group full paths to apply the rule to.
Type: System.String[]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 6 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Devices
Section titled “-Devices”Specifies an array of device display names to apply the rule to.
Type: System.String[]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 5 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-EscalatingChainId
Section titled “-EscalatingChainId”Specifies the ID of the escalation chain to use.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 2 IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-EscalationInterval
Section titled “-EscalationInterval”Specifies the escalation interval in minutes.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 3 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Instance
Section titled “-Instance”Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases:- DataSourceInstanceNameParameterSets:- Name: (All) Position: 8 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-LevelStr
Section titled “-LevelStr”Specifies the level string for the alert rule. Valid values: “All”, “Critical”, “Error”, “Warning”.
Type: System.StringDefaultValue: AllSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 12 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Specifies the name for the alert rule.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 0 IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Priority
Section titled “-Priority”Specifies the priority level for the alert rule. Valid values: “High”, “Medium”, “Low”.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 1 IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ResourceProperties
Section titled “-ResourceProperties”Specifies resource properties to filter on.
Type: System.Collections.HashtableDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 4 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-SuppressAlertAckSdt
Section titled “-SuppressAlertAckSdt”Indicates whether to suppress alert acknowledgement and SDT notifications.
Type: System.BooleanDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 11 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-SuppressAlertClear
Section titled “-SuppressAlertClear”Indicates whether to suppress alert clear notifications.
Type: System.BooleanDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 10 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-WhatIf
Section titled “-WhatIf”Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- wiParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''CommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.