HealthReport 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
HealthReport(IReadOnlyDictionary<String,HealthReportEntry>, TimeSpan)
從指定的結果建立新 HealthReport。
public:
HealthReport(System::Collections::Generic::IReadOnlyDictionary<System::String ^, Microsoft::Extensions::Diagnostics::HealthChecks::HealthReportEntry> ^ entries, TimeSpan totalDuration);
public HealthReport (System.Collections.Generic.IReadOnlyDictionary<string,Microsoft.Extensions.Diagnostics.HealthChecks.HealthReportEntry> entries, TimeSpan totalDuration);
new Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport : System.Collections.Generic.IReadOnlyDictionary<string, Microsoft.Extensions.Diagnostics.HealthChecks.HealthReportEntry> * TimeSpan -> Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport
Public Sub New (entries As IReadOnlyDictionary(Of String, HealthReportEntry), totalDuration As TimeSpan)
參數
- entries
- IReadOnlyDictionary<String,HealthReportEntry>
包含每個健康狀態檢查結果的 IReadOnlyDictionary<TKey,TValue>。
- totalDuration
- TimeSpan
指出健康狀態檢查服務執行所花時間的值。
適用於
HealthReport(IReadOnlyDictionary<String,HealthReportEntry>, HealthStatus, TimeSpan)
從指定的結果建立新 HealthReport。
public:
HealthReport(System::Collections::Generic::IReadOnlyDictionary<System::String ^, Microsoft::Extensions::Diagnostics::HealthChecks::HealthReportEntry> ^ entries, Microsoft::Extensions::Diagnostics::HealthChecks::HealthStatus status, TimeSpan totalDuration);
public HealthReport (System.Collections.Generic.IReadOnlyDictionary<string,Microsoft.Extensions.Diagnostics.HealthChecks.HealthReportEntry> entries, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus status, TimeSpan totalDuration);
new Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport : System.Collections.Generic.IReadOnlyDictionary<string, Microsoft.Extensions.Diagnostics.HealthChecks.HealthReportEntry> * Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus * TimeSpan -> Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport
Public Sub New (entries As IReadOnlyDictionary(Of String, HealthReportEntry), status As HealthStatus, totalDuration As TimeSpan)
參數
- entries
- IReadOnlyDictionary<String,HealthReportEntry>
包含每個健康狀態檢查結果的 IReadOnlyDictionary<TKey,TValue>。
- status
- HealthStatus
, HealthStatus 表示所有健康情況檢查的匯總狀態。
- totalDuration
- TimeSpan
指出健康狀態檢查服務執行所花時間的值。