HealthReportEntry 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
HealthReportEntry(HealthStatus, String, TimeSpan, Exception, IReadOnlyDictionary<String,Object>) |
使用指定的 |
HealthReportEntry(HealthStatus, String, TimeSpan, Exception, IReadOnlyDictionary<String,Object>, IEnumerable<String>) |
使用指定的 |
HealthReportEntry(HealthStatus, String, TimeSpan, Exception, IReadOnlyDictionary<String,Object>)
使用指定的 status
、exception
、description
和 data
的值來建立新 HealthReportEntry。
public:
HealthReportEntry(Microsoft::Extensions::Diagnostics::HealthChecks::HealthStatus status, System::String ^ description, TimeSpan duration, Exception ^ exception, System::Collections::Generic::IReadOnlyDictionary<System::String ^, System::Object ^> ^ data);
public HealthReportEntry (Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus status, string? description, TimeSpan duration, Exception? exception, System.Collections.Generic.IReadOnlyDictionary<string,object>? data);
new Microsoft.Extensions.Diagnostics.HealthChecks.HealthReportEntry : Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus * string * TimeSpan * Exception * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> Microsoft.Extensions.Diagnostics.HealthChecks.HealthReportEntry
Public Sub New (status As HealthStatus, description As String, duration As TimeSpan, exception As Exception, data As IReadOnlyDictionary(Of String, Object))
參數
- status
- HealthStatus
指出所檢查元件健康狀態的值。
- description
- String
可供人員閱讀的已檢查元件狀態描述。
- duration
- TimeSpan
指出健康狀態執行持續時間的值。
- data
- IReadOnlyDictionary<String,Object>
描述元件健康狀態的其他索引鍵/值組。
適用於
HealthReportEntry(HealthStatus, String, TimeSpan, Exception, IReadOnlyDictionary<String,Object>, IEnumerable<String>)
使用指定的 status
、exception
、description
和 data
的值來建立新 HealthReportEntry。
public HealthReportEntry (Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus status, string? description, TimeSpan duration, Exception? exception, System.Collections.Generic.IReadOnlyDictionary<string,object>? data, System.Collections.Generic.IEnumerable<string>? tags = default);
new Microsoft.Extensions.Diagnostics.HealthChecks.HealthReportEntry : Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus * string * TimeSpan * Exception * System.Collections.Generic.IReadOnlyDictionary<string, obj> * seq<string> -> Microsoft.Extensions.Diagnostics.HealthChecks.HealthReportEntry
Public Sub New (status As HealthStatus, description As String, duration As TimeSpan, exception As Exception, data As IReadOnlyDictionary(Of String, Object), Optional tags As IEnumerable(Of String) = Nothing)
參數
- status
- HealthStatus
指出所檢查元件健康狀態的值。
- description
- String
可供人員閱讀的已檢查元件狀態描述。
- duration
- TimeSpan
指出健康狀態執行持續時間的值。
- data
- IReadOnlyDictionary<String,Object>
描述元件健康狀態的其他索引鍵/值組。
- tags
- IEnumerable<String>
與產生報表項目的健康狀態檢查建立關聯的標記。