Get-AlertHistory

Get-AlertHistory

Get the history for the specified alerts.

Syntax

Parameter Set: FromAlert
Get-AlertHistory [-Alert] <MonitoringAlert> [ <CommonParameters>]

Detailed Description

Get the history for the specified alerts.

Parameters

-Alert<MonitoringAlert>

Specifies the alert for which to retrieve the history. You can get objects to supply as values to this parameter by using Get-Alert.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Notes

  • For more information, type "Get-Help Get-AlertHistory -detailed". For technical information, type "Get-Help Get-AlertHistory -full".
    When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".

Examples

-------------- EXAMPLE 1 --------------

This command first uses Get-Alert to retrieve the alerts associated with all connected management groups. It pipes the results to Get-AlertHistory to display history information for each alert.

C:\PS>get-alert | get-alerthistory

Get-Alert