Skip to main content

Class HealthStatus

Namespace: Consul
Assembly: Consul.dll

The status of a health check

public class HealthStatus : IEquatable<HealthStatus>

Inheritance

objectHealthStatus

Implements

IEquatable<HealthStatus>

Inherited Members

object.Equals(object) , object.Equals(object, object) , object.GetHashCode() , object.GetType() , object.MemberwiseClone() , object.ReferenceEquals(object, object) , object.ToString()

Fields

NodeMaintenance

public const string NodeMaintenance = "_node_maintenance"

Field Value

string

ServiceMaintenancePrefix

public const string ServiceMaintenancePrefix = "_service_maintenance:"

Field Value

string

Properties

Any

public static HealthStatus Any { get; }

Property Value

HealthStatus

Critical

public static HealthStatus Critical { get; }

Property Value

HealthStatus

Maintenance

public static HealthStatus Maintenance { get; }

Property Value

HealthStatus

Passing

public static HealthStatus Passing { get; }

Property Value

HealthStatus

Status

public string Status { get; }

Property Value

string

Warning

public static HealthStatus Warning { get; }

Property Value

HealthStatus

Methods

Equals(HealthStatus)

public bool Equals(HealthStatus other)

Parameters

other HealthStatus

Returns

bool

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Parse(string)

public static HealthStatus Parse(string status)

Parameters

status string

Returns

HealthStatus

  • Fields
    • NodeMaintenance
    • ServiceMaintenancePrefix
  • Properties
    • Any
    • Critical
    • Maintenance
    • Passing
    • Status
    • Warning
  • Methods
    • Equals(HealthStatus)
    • Equals(object)
    • GetHashCode()
    • Parse(string)