// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.Extensions.Diagnostics.HealthChecks
{
///
/// Represents the status of a health check result.
///
///
/// The values of this enum or ordered from least healthy to most healthy. So is
/// greater than but less than .
///
public enum HealthCheckStatus
{
///
/// This value should not be returned by a health check. It is used to represent an uninitialized value.
///
Unknown = 0,
///
/// This value should not be returned by a health check. It is used to indicate that an unexpected exception was
/// thrown when running the health check.
///
Failed = 1,
///
/// Indicates that the health check determined that the component was unhealthy.
///
Unhealthy = 2,
///
/// Indicates that the health check determined that the component was in a degraded state.
///
Degraded = 3,
///
/// Indicates that the health check determined that the component was healthy.
///
Healthy = 4,
}
}