HealthStatus 枚举

定义

表示运行状况检查结果的报告状态。Represents the reported status of a health check result.

public enum class HealthStatus
public enum HealthStatus
type HealthStatus = 
Public Enum HealthStatus
继承
HealthStatus

字段

Degraded 1

指示运行状况检查确定组件处于降级状态。Indicates that the health check determined that the component was in a degraded state.

Healthy 2

指示运行状况检查确定组件运行正常。Indicates that the health check determined that the component was healthy.

Unhealthy 0

指示运行状况检查确定组件运行不正常,或在执行运行状况检查时引发了未经处理的异常。Indicates that the health check determined that the component was unhealthy, or an unhandled exception was thrown while executing the health check.

注解

如果状态为 "@no__t",则应将其视为失败的运行状况检查的默认值。A status of Unhealthy should be considered the default value for a failing health check. 应用程序开发人员可以根据需要配置运行状况检查来报告不同的状态。Application developers may configure a health check to report a different status as desired.

此枚举的值,或按从最小到最正常的顺序排列。The values of this enum or ordered from least healthy to most healthy. 因此 Degraded 大于 Unhealthy 但小于 HealthySo Degraded is greater than Unhealthy but less than Healthy.

适用于