New-AlarmActionTrigger
This cmdlet creates a new action trigger or adds a new action trigger to the specified alarm action.
Syntax
[-EndStatus]
<InventoryItemStatus>
-StartStatus <InventoryItemStatus>
[-AlarmAction <AlarmAction>]
[-Repeat]
[CommonParameters]
-StartStatus <InventoryItemStatus>
[-AlarmAction <AlarmAction>]
[-Repeat]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
InventoryItemStatus | 1 |
|
Specifies the end status for the alarm action. The valid values are Green, Yellow, and Red. | required |
|
InventoryItemStatus | named |
|
Specifies the start status for the alarm action. The valid values are Green, Yellow, and Red. | optional |
|
AlarmAction | named |
|
Specifies the alarm action for which you want to create an action trigger. | optional |
|
SwitchParameter | named |
|
Indicates whether you want the alarm action to repeat until the alarm is acknowledged. |
Output
VMware.VimAutomation.ViCore.Types.V1.Alarm.AlarmActionTrigger
Examples
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 removes an alarm action.
This cmdlet creates an alarm action and attaches it to the specified alarm.
AlarmActionTrigger
This cmdlet retrieves the actions that trigger the specified alarm actions.
This cmdlet removes the alarm action triggers.
This cmdlet creates a new action trigger for the specified alarm action.
AlarmDefinition
This cmdlet retrieves the available alarm definitions.
This cmdlet modifies the specified alarm definitions.
This cmdlet removes alarm definitions from the vSphere environment.
This cmdlet creates a new alarm definition.
AlarmTrigger
This cmdlet retrieves alarms triggers.
This cmdlet adds ? new alarm trigger to the existing alarm or creates ? new alarm trigger.