Set-LMUptimeDevice
Syntax
Section titled “Syntax”IdGeneral (Default)
Section titled “IdGeneral (Default)”Set-LMUptimeDevice -Id <Int32> [-PropertiesMethod <String>] [-Description <String>] [-HostGroupIds <String[]>] [-PollingInterval <Int32>] [-AlertTriggerInterval <Int32>] [-GlobalSmAlertCond <String>] [-OverallAlertLevel <String>] [-IndividualAlertLevel <String>] [-IndividualSmAlertEnable <Boolean>] [-UseDefaultLocationSetting <Boolean>] [-UseDefaultAlertSetting <Boolean>] [-Properties <Hashtable>] [-Template <String>] [-TestLocationCollectorIds <Int32[]>] [-TestLocationSmgIds <Int32[]>] [-TestLocationAll] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]IdPing
Section titled “IdPing”Set-LMUptimeDevice -Id <Int32> [-PropertiesMethod <String>] [-Description <String>] [-HostGroupIds <String[]>] [-PollingInterval <Int32>] [-AlertTriggerInterval <Int32>] [-GlobalSmAlertCond <String>] [-OverallAlertLevel <String>] [-IndividualAlertLevel <String>] [-IndividualSmAlertEnable <Boolean>] [-UseDefaultLocationSetting <Boolean>] [-UseDefaultAlertSetting <Boolean>] [-Properties <Hashtable>] [-Template <String>] [-Hostname <String>] [-Count <Int32>] [-PercentPktsNotReceiveInTime <Int32>] [-TimeoutInMSPktsNotReceive <Int32>] [-TestLocationCollectorIds <Int32[]>] [-TestLocationSmgIds <Int32[]>] [-TestLocationAll] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Set-LMUptimeDevice -Id <Int32> [-PropertiesMethod <String>] [-Description <String>] [-HostGroupIds <String[]>] [-PollingInterval <Int32>] [-AlertTriggerInterval <Int32>] [-GlobalSmAlertCond <String>] [-OverallAlertLevel <String>] [-IndividualAlertLevel <String>] [-IndividualSmAlertEnable <Boolean>] [-UseDefaultLocationSetting <Boolean>] [-UseDefaultAlertSetting <Boolean>] [-Properties <Hashtable>] [-Template <String>] [-Domain <String>] [-Schema <String>] [-IgnoreSSL <Boolean>] [-PageLoadAlertTimeInMS <Int32>] [-AlertExpr <String>] [-TriggerSSLStatusAlert <Boolean>] [-TriggerSSLExpirationAlert <Boolean>] [-Steps <Hashtable[]>] [-TestLocationCollectorIds <Int32[]>] [-TestLocationSmgIds <Int32[]>] [-TestLocationAll] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]NamePing
Section titled “NamePing”Set-LMUptimeDevice -Name <String> [-PropertiesMethod <String>] [-Description <String>] [-HostGroupIds <String[]>] [-PollingInterval <Int32>] [-AlertTriggerInterval <Int32>] [-GlobalSmAlertCond <String>] [-OverallAlertLevel <String>] [-IndividualAlertLevel <String>] [-IndividualSmAlertEnable <Boolean>] [-UseDefaultLocationSetting <Boolean>] [-UseDefaultAlertSetting <Boolean>] [-Properties <Hashtable>] [-Template <String>] [-Hostname <String>] [-Count <Int32>] [-PercentPktsNotReceiveInTime <Int32>] [-TimeoutInMSPktsNotReceive <Int32>] [-TestLocationCollectorIds <Int32[]>] [-TestLocationSmgIds <Int32[]>] [-TestLocationAll] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]NameWeb
Section titled “NameWeb”Set-LMUptimeDevice -Name <String> [-PropertiesMethod <String>] [-Description <String>] [-HostGroupIds <String[]>] [-PollingInterval <Int32>] [-AlertTriggerInterval <Int32>] [-GlobalSmAlertCond <String>] [-OverallAlertLevel <String>] [-IndividualAlertLevel <String>] [-IndividualSmAlertEnable <Boolean>] [-UseDefaultLocationSetting <Boolean>] [-UseDefaultAlertSetting <Boolean>] [-Properties <Hashtable>] [-Template <String>] [-Domain <String>] [-Schema <String>] [-IgnoreSSL <Boolean>] [-PageLoadAlertTimeInMS <Int32>] [-AlertExpr <String>] [-TriggerSSLStatusAlert <Boolean>] [-TriggerSSLExpirationAlert <Boolean>] [-Steps <Hashtable[]>] [-TestLocationCollectorIds <Int32[]>] [-TestLocationSmgIds <Int32[]>] [-TestLocationAll] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]NameGeneral
Section titled “NameGeneral”Set-LMUptimeDevice -Name <String> [-PropertiesMethod <String>] [-Description <String>] [-HostGroupIds <String[]>] [-PollingInterval <Int32>] [-AlertTriggerInterval <Int32>] [-GlobalSmAlertCond <String>] [-OverallAlertLevel <String>] [-IndividualAlertLevel <String>] [-IndividualSmAlertEnable <Boolean>] [-UseDefaultLocationSetting <Boolean>] [-UseDefaultAlertSetting <Boolean>] [-Properties <Hashtable>] [-Template <String>] [-TestLocationCollectorIds <Int32[]>] [-TestLocationSmgIds <Int32[]>] [-TestLocationAll] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The Set-LMUptimeDevice cmdlet updates internal or external Uptime monitors (web or ping) by submitting a PATCH request to the LogicMonitor v3 device endpoint. It resolves the device ID from name when necessary, validates location combinations, and constructs the appropriate payload structure before issuing the request.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Set-LMUptimeDevice -Id 123 -PollingInterval 10 -Transition 2Updates the polling interval and transition threshold for the uptime device with ID 123.
Example 2
Section titled “Example 2”Set-LMUptimeDevice -Name "web-ext-01" -TestLocationSmgIds 2,4,6 -TriggerSSLStatusAlert $trueResolves the ID from the device name and updates external web check locations and SSL alerts.
Parameters
Section titled “Parameters”Specifies the device identifier to update. Accepts pipeline input by property name.
Type: Int32Parameter Sets: IdGeneral, IdPing, IdWebAliases:
Required: TruePosition: NamedDefault value: 0Accept pipeline input: True (ByPropertyName)Accept wildcard characters: FalseSpecifies the device name to update. The cmdlet resolves the corresponding ID prior to issuing the request.
Type: StringParameter Sets: NamePing, NameWeb, NameGeneralAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-PropertiesMethod
Section titled “-PropertiesMethod”Determines how custom properties are applied when supplied. Valid values are Add, Replace, or Refresh.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: ReplaceAccept pipeline input: FalseAccept wildcard characters: False-Description
Section titled “-Description”Updates the description of the Uptime device.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-HostGroupIds
Section titled “-HostGroupIds”Sets the group identifiers assigned to the Uptime device.
Type: String[]Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-PollingInterval
Section titled “-PollingInterval”Configures the polling interval in minutes.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-AlertTriggerInterval
Section titled “-AlertTriggerInterval”Specifies the number of consecutive failures before alerting.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-GlobalSmAlertCond
Section titled “-GlobalSmAlertCond”Sets the synthetic monitoring global alert condition (all, half, moreThanOne, any).
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-OverallAlertLevel
Section titled “-OverallAlertLevel”Configures the overall alert level (warn, error, critical).
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-IndividualAlertLevel
Section titled “-IndividualAlertLevel”Configures the individual alert level (warn, error, critical).
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-IndividualSmAlertEnable
Section titled “-IndividualSmAlertEnable”Enables or disables individual synthetic alerts.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-UseDefaultLocationSetting
Section titled “-UseDefaultLocationSetting”Controls whether default location settings are used for the Uptime device.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-UseDefaultAlertSetting
Section titled “-UseDefaultAlertSetting”Controls whether default alert settings are used for the Uptime device.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Properties
Section titled “-Properties”Hashtable of custom properties to apply to the Uptime device.
Type: HashtableParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Template
Section titled “-Template”Specifies an optional template identifier.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Domain
Section titled “-Domain”Updates the domain for web checks.
Type: StringParameter Sets: IdWeb, NameWebAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Schema
Section titled “-Schema”Defines the HTTP schema (http or https) for web checks.
Type: StringParameter Sets: IdWeb, NameWebAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-IgnoreSSL
Section titled “-IgnoreSSL”Enables or disables SSL certificate validation warnings.
Type: BooleanParameter Sets: IdWeb, NameWebAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-PageLoadAlertTimeInMS
Section titled “-PageLoadAlertTimeInMS”Sets the page load alert threshold for web checks.
Type: Int32Parameter Sets: IdWeb, NameWebAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-AlertExpr
Section titled “-AlertExpr”Configures the SSL alert expression for web checks.
Type: StringParameter Sets: IdWeb, NameWebAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-TriggerSSLStatusAlert
Section titled “-TriggerSSLStatusAlert”Enables or disables SSL status alerts.
Type: BooleanParameter Sets: IdWeb, NameWebAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-TriggerSSLExpirationAlert
Section titled “-TriggerSSLExpirationAlert”Enables or disables SSL expiration alerts.
Type: BooleanParameter Sets: IdWeb, NameWebAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Steps
Section titled “-Steps”Provides an array of step definitions for web checks.
Type: Hashtable[]Parameter Sets: IdWeb, NameWebAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Hostname
Section titled “-Hostname”Updates the hostname/IP for ping checks.
Type: StringParameter Sets: IdPing, NamePingAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Count
Section titled “-Count”Sets the number of ping attempts per polling cycle.
Type: Int32Parameter Sets: IdPing, NamePingAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-PercentPktsNotReceiveInTime
Section titled “-PercentPktsNotReceiveInTime”Defines the allowed packet loss percentage before alerting.
Type: Int32Parameter Sets: IdPing, NamePingAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-TimeoutInMSPktsNotReceive
Section titled “-TimeoutInMSPktsNotReceive”Defines the timeout threshold in milliseconds for ping checks.
Type: Int32Parameter Sets: IdPing, NamePingAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-TestLocationCollectorIds
Section titled “-TestLocationCollectorIds”Specifies collector identifiers for internal checks.
Type: Int32[]Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-TestLocationSmgIds
Section titled “-TestLocationSmgIds”Specifies synthetic monitoring group identifiers for external checks.
Type: Int32[]Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-TestLocationAll
Section titled “-TestLocationAll”Indicates that all public locations should be used for external checks.
Type: SwitchParameterParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept 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”Outputs
Section titled “Outputs”LogicMonitor.LMUptimeDevice
Section titled “LogicMonitor.LMUptimeDevice”You must run Connect-LMAccount before invoking this cmdlet.