HealthReport 類別

定義

代表執行一組 IHealthCheck 實例的結果。

public ref class HealthReport sealed
public sealed class HealthReport
type HealthReport = class
Public NotInheritable Class HealthReport
繼承
HealthReport

建構函式

名稱 Description
HealthReport(IReadOnlyDictionary<String,HealthReportEntry>, HealthStatus, TimeSpan)

從指定的結果建立一個新的 HealthReport

HealthReport(IReadOnlyDictionary<String,HealthReportEntry>, TimeSpan)

從指定的結果建立一個新的 HealthReport

屬性

名稱 Description
Entries

IReadOnlyDictionary<TKey,TValue> A,裡面有每次健康檢查的結果。

Status

會收到 HealthStatus 一份代表所有健康檢查總狀態的表格。 該 Status 值將是健康檢查報告中最嚴重的狀態。 若未執行檢查,值永遠 Healthy為 。

TotalDuration

會得到健康檢查服務執行的時間。

適用於