Table of Contents

Class RegionHealth

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Represents the health status of a region.

public sealed record RegionHealth : IEquatable<RegionHealth>
Inheritance
RegionHealth
Implements
Inherited Members

Constructors

RegionHealth(string, bool, TimeSpan, DateTimeOffset, int, string?, IReadOnlyDictionary<string, string>?)

Represents the health status of a region.

public RegionHealth(string RegionId, bool IsHealthy, TimeSpan Latency, DateTimeOffset LastChecked, int ConsecutiveFailures, string? ErrorMessage = null, IReadOnlyDictionary<string, string>? Diagnostics = null)

Parameters

RegionId string

The identifier of the region.

IsHealthy bool

Whether the region is responding to health checks.

Latency TimeSpan

The measured latency to the region.

LastChecked DateTimeOffset

When the last health check was performed.

ConsecutiveFailures int

Number of consecutive health check failures.

ErrorMessage string

Error message if unhealthy; null otherwise.

Diagnostics IReadOnlyDictionary<string, string>

Additional diagnostic information.

Properties

ConsecutiveFailures

Number of consecutive health check failures.

public int ConsecutiveFailures { get; init; }

Property Value

int

Diagnostics

Additional diagnostic information.

public IReadOnlyDictionary<string, string>? Diagnostics { get; init; }

Property Value

IReadOnlyDictionary<string, string>

ErrorMessage

Error message if unhealthy; null otherwise.

public string? ErrorMessage { get; init; }

Property Value

string

IsHealthy

Whether the region is responding to health checks.

public bool IsHealthy { get; init; }

Property Value

bool

LastChecked

When the last health check was performed.

public DateTimeOffset LastChecked { get; init; }

Property Value

DateTimeOffset

Latency

The measured latency to the region.

public TimeSpan Latency { get; init; }

Property Value

TimeSpan

RegionId

The identifier of the region.

public string RegionId { get; init; }

Property Value

string