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>)
- Source:
- HealthReportEntry.cs
- Source:
- HealthReportEntry.cs
- Source:
- HealthReportEntry.cs
使用 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>)
- Source:
- HealthReportEntry.cs
- Source:
- HealthReportEntry.cs
- Source:
- HealthReportEntry.cs
使用 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>
与生成的报告项的运行状况检查关联的标记。