New-AlarmActionTrigger
This cmdlet creates a new action trigger or adds a new action trigger to the specified alarm action.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
EndStatus | InventoryItemStatus | 1 |
|
Specifies the end status for the alarm action. The valid values are Green, Yellow, and Red. |
required
|
StartStatus | InventoryItemStatus | named |
|
Specifies the start status for the alarm action. The valid values are Green, Yellow, and Red. |
optional | AlarmAction | AlarmAction | named |
|
Specifies the alarm action for which you want to create an action trigger. |
optional | ProgressAction | ActionPreference | named |
|
|
optional | Repeat | SwitchParameter | named |
|
Indicates whether you want the alarm action to repeat until the alarm is acknowledged. |
Output
VMware.VimAutomation.ViCore.Types.V1.Alarm.AlarmActionTriggerExamples
Example 1
Get-AlarmDefinition -Name "Alarm1" | Get-AlarmAction | New-AlarmActionTrigger -StartStatus 'Red' -EndStatus 'Yellow' -Repeat
Creates an action trigger for all actions for the specified alarm definition.
Example 2
New-AlarmActionTrigger -StartStatus 'Red' -EndStatus 'Yellow' -Repeat
Creates an action trigger.
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)