< Back

Get-AlarmTrigger

Sun Jan 19, 2020 6:49 pm

NAME Get-AlarmTrigger



SYNOPSIS

This cmdlet retrieves alarms triggers.





SYNTAX

Get-AlarmTrigger [-AlarmDefinition] <AlarmDefinition[]> [-TriggerType {Unknown | Event | Metric | State}] [-Server

<VIServer[]>] [<CommonParameters>]





DESCRIPTION

This cmdlet retrieves alarms triggers. The cmdlet returns a set of triggers that correspond to the filter criteria

provided by the cmdlet parameters. To specify a server different from the default one, use the Server parameter.





PARAMETERS

-AlarmDefinition <AlarmDefinition[]>

Specifies the alarm definitions for which you want to retrieve the triggers. The alarm name could be passed.



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-TriggerType <TriggerType>

Specifies the type of the trigger that you want to retrieve.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Server <VIServer[]>

Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this

parameter, the command runs on the default servers. For more information about default servers, see the

description of the Connect-VIServer cmdlet.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None







OUTPUTS

VMware.VimAutomation.ViCore.Types.V1.Alarm.AlarmTrigger







NOTES









-------------------------- Example 1 --------------------------



Get-AlarmTrigger -AlarmDefinition $alarm



Retrieves all alarm triggers.

-------------------------- Example 1 --------------------------



Get-AlarmTrigger -AlarmDefinition $alarm -TriggerType Event



Retrieves alarm triggers of type Event.



RELATED LINKS

Get-AlarmAction

Get-AlarmActionTrigger

Get-AlarmDefinition

Get-AlarmTrigger

New-AlarmAction

New-AlarmActionTrigger

New-AlarmDefinition

New-AlarmTrigger

Remove-AlarmAction

Remove-AlarmActionTrigger

Remove-AlarmDefinition

Set-AlarmDefinition

Get-Metric

Get-EventType