Set-LMDeviceDatasourceInstanceAlertSetting
Syntax
Name-dsName
Set-LMDeviceDatasourceInstanceAlertSetting -DatasourceName <String> -Name <String> -DatapointName <String> -InstanceName <String> [-DisableAlerting <Boolean>] [-AlertExpressionNote <String>] -AlertExpression <String> -AlertClearTransitionInterval <Int32> -AlertTransitionInterval <Int32> -AlertForNoData <Int32> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Id-dsName
Set-LMDeviceDatasourceInstanceAlertSetting -DatasourceName <String> -Id <Int32> -DatapointName <String> -InstanceName <String> [-DisableAlerting <Boolean>] [-AlertExpressionNote <String>] -AlertExpression <String> -AlertClearTransitionInterval <Int32> -AlertTransitionInterval <Int32> -AlertForNoData <Int32> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Name-dsId
Set-LMDeviceDatasourceInstanceAlertSetting -DatasourceId <Int32> -Name <String> -DatapointName <String> -InstanceName <String> [-DisableAlerting <Boolean>] [-AlertExpressionNote <String>] -AlertExpression <String> -AlertClearTransitionInterval <Int32> -AlertTransitionInterval <Int32> -AlertForNoData <Int32> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Id-dsId
Set-LMDeviceDatasourceInstanceAlertSetting -DatasourceId <Int32> -Id <Int32> -DatapointName <String> -InstanceName <String> [-DisableAlerting <Boolean>] [-AlertExpressionNote <String>] -AlertExpression <String> -AlertClearTransitionInterval <Int32> -AlertTransitionInterval <Int32> -AlertForNoData <Int32> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Description
The Set-LMDeviceDatasourceInstanceAlertSetting function modifies alert settings for a specific device datasource instance in LogicMonitor.
Examples
Example 1
90"Updates the alert settings for the CPU Usage datapoint on the specified device.
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. Can be specified using the ‘DeviceId’ alias.
Type: Int32Parameter Sets: Id-dsName, Id-dsIdAliases: DeviceId
Required: TruePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False
-Name
Specifies the name of the device. Can be specified using the ‘DeviceName’ alias.
Type: StringParameter Sets: Name-dsName, Name-dsIdAliases: DeviceName
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
-InstanceName
Specifies the name of the instance 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 instance.
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
-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
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
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.AlertSetting object containing the updated alert settings.
Notes
This function requires a valid LogicMonitor API authentication.