Set-LMDeviceGroupDatasourceAlertSetting
Syntax
Name-dsName
Set-LMDeviceGroupDatasourceAlertSetting -DatasourceName <String> -Name <String> -DatapointName <String> [-DisableAlerting <Boolean>] [-AlertExpressionNote <String>] -AlertExpression <String> -AlertClearTransitionInterval <Int32> -AlertTransitionInterval <Int32> -AlertForNoData <Int32> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Id-dsName
Set-LMDeviceGroupDatasourceAlertSetting -DatasourceName <String> -Id <Int32> -DatapointName <String> [-DisableAlerting <Boolean>] [-AlertExpressionNote <String>] -AlertExpression <String> -AlertClearTransitionInterval <Int32> -AlertTransitionInterval <Int32> -AlertForNoData <Int32> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Name-dsId
Set-LMDeviceGroupDatasourceAlertSetting -DatasourceId <Int32> -Name <String> -DatapointName <String> [-DisableAlerting <Boolean>] [-AlertExpressionNote <String>] -AlertExpression <String> -AlertClearTransitionInterval <Int32> -AlertTransitionInterval <Int32> -AlertForNoData <Int32> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Id-dsId
Set-LMDeviceGroupDatasourceAlertSetting -DatasourceId <Int32> -Id <Int32> -DatapointName <String> [-DisableAlerting <Boolean>] [-AlertExpressionNote <String>] -AlertExpression <String> -AlertClearTransitionInterval <Int32> -AlertTransitionInterval <Int32> -AlertForNoData <Int32> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
The Set-LMDeviceGroupDatasourceAlertSetting function modifies alert settings for a specific device group datasource in LogicMonitor.
Examples
Example 1
90"Updates the alert settings for the CPU Usage datapoint on the specified device group.
Parameters
-DatasourceName
Specifies the name of the datasource. Required when using the ‘Id-dsName’ or ‘Name-dsName’ parameter sets.
Type: StringParameter Sets: Name-dsName, Id-dsNameAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-DatasourceId
Specifies the ID of the datasource. Required when using the ‘Id-dsId’ or ‘Name-dsId’ parameter sets.
Type: Int32Parameter Sets: Name-dsId, Id-dsIdAliases:
Required: TruePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False
-Id
Specifies the ID of the device group.
Type: Int32Parameter Sets: Id-dsName, Id-dsIdAliases:
Required: TruePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False
-Name
Specifies the name of the device group.
Type: StringParameter Sets: Name-dsName, Name-dsIdAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-DatapointName
Specifies the name of the datapoint for which to configure alerts.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-DisableAlerting
Specifies whether to disable alerting for this datasource.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-AlertExpressionNote
Specifies a note for the alert expression.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-AlertExpression
Specifies the alert expression in the format “(01:00 02:00) > -100 timezone=America/New_York”.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-AlertClearTransitionInterval
Specifies the interval for alert clear transitions. Must be between 0 and 60.
Type: Int32Parameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False
-AlertTransitionInterval
Specifies the interval for alert transitions. Must be between 0 and 60.
Type: Int32Parameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False
-AlertForNoData
Specifies the alert level for no data conditions. Must be between 1 and 4.
Type: Int32Parameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False
-ProgressAction
Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
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
None.
Outputs
Returns a LogicMonitor.DeviceGroupDatasourceAlertSetting object containing the updated alert settings.
Notes
This function requires a valid LogicMonitor API authentication.