Table of Contents

Class CandidateHealth

Namespace
Excalibur.Dispatch.LeaderElection
Assembly
Excalibur.Dispatch.LeaderElection.Abstractions.dll

Represents the health status of a candidate.

public sealed class CandidateHealth
Inheritance
CandidateHealth
Inherited Members
Extension Methods

Properties

CandidateId

Gets the candidate ID.

public string CandidateId { get; init; }

Property Value

string

the candidate ID.

HealthScore

Gets the health score (0.0 to 1.0).

public double HealthScore { get; init; }

Property Value

double

the health score (0.0 to 1.0).

IsHealthy

Gets a value indicating whether the candidate is healthy.

public bool IsHealthy { get; init; }

Property Value

bool

true if the candidate is healthy.; otherwise, false.

IsLeader

Gets a value indicating whether this candidate is the current leader.

public bool IsLeader { get; init; }

Property Value

bool

true if this candidate is the current leader.; otherwise, false.

LastUpdated

Gets when the health was last updated.

public DateTimeOffset LastUpdated { get; init; }

Property Value

DateTimeOffset

when the health was last updated.

Metadata

Gets health metadata.

public IDictionary<string, string> Metadata { get; init; }

Property Value

IDictionary<string, string>

health metadata.