Skip to content

Set-LMDeviceDatasourceInstanceAlertSetting

Syntax

Name-dsName

Terminal window
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

Terminal window
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

Terminal window
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

Terminal window
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

Terminal window
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: String
Parameter Sets: Name-dsName, Id-dsName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DatasourceId

Specifies the ID of the datasource. Required when using the ‘Id-dsId’ or ‘Name-dsId’ parameter sets.

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

-Id

Specifies the ID of the device. Can be specified using the ‘DeviceId’ alias.

Type: Int32
Parameter Sets: Id-dsName, Id-dsId
Aliases: DeviceId
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-Name

Specifies the name of the device. Can be specified using the ‘DeviceName’ alias.

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

-DatapointName

Specifies the name of the datapoint for which to configure alerts.

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

-InstanceName

Specifies the name of the instance for which to configure alerts.

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

-DisableAlerting

Specifies whether to disable alerting for this instance.

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

-AlertExpressionNote

Specifies a note for the alert expression.

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

-AlertExpression

Specifies the alert expression in the format “(01:00 02:00) > -100 timezone=America/New_York”.

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

-AlertClearTransitionInterval

Specifies the interval for alert clear transitions. Must be between 0 and 60.

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

-AlertTransitionInterval

Specifies the interval for alert transitions. Must be between 0 and 60.

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

-AlertForNoData

Specifies the alert level for no data conditions. Must be between 1 and 4.

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

-WhatIf

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

-Confirm

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

-ProgressAction

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

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.