Get-SCOMAlertHistory

Get-SCOMAlertHistory

Gets history entries for alerts.

構文

Parameter Set: FromAlertDefault
Get-SCOMAlertHistory [-Alert] <MonitoringAlert[]> [ <CommonParameters>]

詳細説明

The Get-SCOMAlertHistory cmdlet gets history entries for one or many alerts.

パラメーター

-Alert<MonitoringAlert[]>

Specifies an array of MonitoringAlert objects. To obtain a MonitoringAlert object, use the Get-SCOMAlert cmdlet.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Get the history of alerts

This command gets all alerts with heartbeat in their name and passes the alerts to the Get-SCOMAlertHistory cmdlet by using the pipe operator. The Get-SCOMAlertHistory cmdlet returns the history for each alert. The Format-Table cmdlet displays the values for the ResolutionState, Owner, ModifiedBy, and Comments properties for each alert.

PS C:\> Get-SCOMAlert -Name "*heartbeat*" | Get-SCOMAlertHistory | Format-Table, ResolutionState, Owner, ModifiedBy, Comments

関連トピック

Get-SCOMAlert