Skip to content

VoiceHealth

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The voice provider’s reachability status.

public sealed record VoiceHealth : IEquatable<VoiceHealth>

objectVoiceHealth

IEquatable<VoiceHealth>

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

ModelProviderHealth is deliberately not reused: a voice provider is not an IModelProvider and must not appear in the /api/models/health output. If the two sources were combined into one list, the circuit breaker and model catalog would behave incorrectly.

public VoiceHealth()

The moment the check was performed (UTC).

public required DateTimeOffset CheckedAt { get; init; }

DateTimeOffset

The reason, if failed. The text carries neither an API key nor an address.

public string? Detail { get; init; }

string?

Whether the provider is reachable.

public required bool IsHealthy { get; init; }

bool

The check’s duration.

public required TimeSpan Latency { get; init; }

TimeSpan

The provider name.

public required string ProviderName { get; init; }

string

The number of voices seen during the check.

public int? VoiceCount { get; init; }

int?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(VoiceHealth? other)

other VoiceHealth?

bool

public override int GetHashCode()

int

public override string ToString()

string

public static bool operator ==(VoiceHealth? left, VoiceHealth? right)

left VoiceHealth?

right VoiceHealth?

bool

public static bool operator !=(VoiceHealth? left, VoiceHealth? right)

left VoiceHealth?

right VoiceHealth?

bool