HealthReportEntry 建構函式

定義

多載

HealthReportEntry(HealthStatus, String, TimeSpan, Exception, IReadOnlyDictionary<String,Object>)

使用指定的 statusexceptiondescriptiondata 的值來建立新 HealthReportEntry

HealthReportEntry(HealthStatus, String, TimeSpan, Exception, IReadOnlyDictionary<String,Object>, IEnumerable<String>)

使用指定的 statusexceptiondescriptiondata 的值來建立新 HealthReportEntry

HealthReportEntry(HealthStatus, String, TimeSpan, Exception, IReadOnlyDictionary<String,Object>)

來源:
HealthReportEntry.cs
來源:
HealthReportEntry.cs
來源:
HealthReportEntry.cs
來源:
HealthReportEntry.cs
來源:
HealthReportEntry.cs

使用指定的 statusexceptiondescriptiondata 的值來建立新 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);
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

指出健康狀態執行持續時間的值。

exception
Exception

代表檢查狀態時擲回之例外狀況的 Exception (如有)。

data
IReadOnlyDictionary<String,Object>

描述元件健康狀態的其他索引鍵/值組。

適用於

HealthReportEntry(HealthStatus, String, TimeSpan, Exception, IReadOnlyDictionary<String,Object>, IEnumerable<String>)

來源:
HealthReportEntry.cs
來源:
HealthReportEntry.cs
來源:
HealthReportEntry.cs
來源:
HealthReportEntry.cs
來源:
HealthReportEntry.cs

使用指定的 statusexceptiondescriptiondata 的值來建立新 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);
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

指出健康狀態執行持續時間的值。

exception
Exception

代表檢查狀態時擲回之例外狀況的 Exception (如有)。

data
IReadOnlyDictionary<String,Object>

描述元件健康狀態的其他索引鍵/值組。

tags
IEnumerable<String>

與產生報表項目的健康狀態檢查建立關聯的標記。

適用於