New-AlarmTriggerArgument
This cmdlet creates a new AlarmTriggerArgument local object that defines the condition comparison under which an alarm is triggered. The AlarmTriggerArgument object is used as the Arguments parameter in the New-AlarmTrigger cmdlet.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
AttributeName | String | named |
|
Specifies the attribute name in the expression comparison. You can fetch the valid attribute names for the "vsan.health.ssd.endurance" event type by using the New-AlarmTriggerArgumentAttributeName cmdlet. |
required
|
Operator | AlarmTriggerArgumentOperatorType | named |
|
Specifies the operator in the comparison expression. The valid values are equals, notEqualTo, startsWith, doesNotStartWith, endsWith, doesNotEndWith. |
required
|
Value | String | named |
|
Specifies the value in the comparison expression. |
optional | ProgressAction | ActionPreference | named |
|
Output
VMware.VimAutomation.ViCore.Types.V1.Alarm.AlarmTriggerArgumentExamples
Example 1
$argument = New-AlarmTriggerArgument -AttributeName "Cluster Name" -Operator "equals" -Value "vSAN-ESA-Cluster"
Creates a local AlarmTriggerArgument object with the Cluster Name attribute equal to "vSAN-ESA-Cluster".
Example 2
New-AlarmTriggerArgument cmdlet New-AlarmTriggerArgument at command pipeline position 1 Supply values for the following parameters: AttributeName: host.name Operator: equals Value: "host-123"
Creates a local AlarmTriggerArgument object with a host name equal to "host-123".
Related Commands
AlarmAction
This cmdlet retrieves the actions of the specified alarm definitions.
This cmdlet creates an alarm action and attaches it to the specified alarm.
This cmdlet removes an alarm action.
AlarmActionTrigger
This cmdlet retrieves the actions that trigger the specified alarm actions.
This cmdlet creates a new action trigger for the specified alarm action.
This cmdlet removes the alarm action triggers.
AlarmDefinition
This cmdlet retrieves the available alarm definitions.
This cmdlet creates a new alarm definition.
This cmdlet removes alarm definitions from the vSphere environment.
This cmdlet modifies the specified alarm definitions.
AlarmTrigger
This cmdlet retrieves alarms triggers.
This cmdlet adds ? new alarm trigger to the existing alarm or creates ? new alarm trigger.
AlarmTriggerArgument
This cmdlet creates a new AlarmTriggerArgument local object that defines the condition comparison under which an alarm is triggered. The AlarmTriggerArgument object is used as the Arguments parameter in the New-AlarmTrigger cmdlet.
AlarmTriggerArgumentAttributeName
This cmdlet fetches a list of attribute names of the alarm trigger argument for the "vsan.health.ssd.endurance" event type. (The most of attribute names for alarm trigger argument can be fetched by Get-EventType)