Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
HealthStatus Enum
Definition
- Assembly:
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.dll
- Package:
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions v11.0.0-preview.5.26302.115
- Source:
- HealthStatus.cs
- Source:
- HealthStatus.cs
- Source:
- HealthStatus.cs
- Source:
- HealthStatus.cs
- Source:
- HealthStatus.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the reported status of a health check result.
public enum class HealthStatus
public enum HealthStatus
type HealthStatus =
Public Enum HealthStatus
- Inheritance
Fields
| Name | Value | Description |
|---|---|---|
| Unhealthy | 0 | Indicates that the health check determined that the component was unhealthy, or an unhandled exception was thrown while executing the health check. |
| 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. |
Remarks
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. So Degraded is greater than Unhealthy but less than Healthy.
Applies to
Feedback
Was this page helpful?
