26.146. Class HealthCheckRecord

Namespace: ArmoniK.Core.Common
Assembly: ArmoniK.Core.Common.dll

Records the health check results to be retrieved at any time by other components of the application.

public class HealthCheckRecord

26.146.1. Inheritance

objectHealthCheckRecord

26.146.2. Inherited Members

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

26.146.3. Methods

26.146.3.1. LastCheck(HealthCheckTag)

Retrieves the last HealthCheckResult.

public HealthReport LastCheck(HealthCheckTag tag = HealthCheckTag.Liveness)

26.146.3.1.1. Parameters

tag HealthCheckTag

The type of health check.

26.146.3.1.2. Returns

HealthReport

The result of the health check.

26.146.3.2. Record(HealthCheckTag, HealthReport)

Records a HealthCheckResult.

public void Record(HealthCheckTag tag, HealthReport report)

26.146.3.2.1. Parameters

tag HealthCheckTag

The type of health check to record.

report HealthReport

The result of the health check.