HealthCheckResult.Healthy 方法

定义

创建一个表示运行正常的组件的 HealthCheckResult

public static Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult Healthy (string? description = default, System.Collections.Generic.IReadOnlyDictionary<string,object>? data = default);
static member Healthy : string * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult
Public Shared Function Healthy (Optional description As String = Nothing, Optional data As IReadOnlyDictionary(Of String, Object) = Nothing) As HealthCheckResult

参数

description
String

检查的组件状态的可读说明。 可选。

data
IReadOnlyDictionary<String,Object>

描述组件运行状况的附加键值对。 可选。

返回

一个表示运行正常的组件的 HealthCheckResult

适用于