ModelProviderHealth
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllA model provider’s status at the last check.
public sealed record ModelProviderHealth : IEquatable<ModelProviderHealth>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<ModelProviderHealth>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”ModelProviderHealth()
Section titled “ ModelProviderHealth()”public ModelProviderHealth()Properties
Section titled “Properties”CheckedAt
Section titled “ CheckedAt”The time the check was performed.
public DateTimeOffset CheckedAt { get; init; }Property Value
Section titled “Property Value”Detail
Section titled “ Detail”A short failure reason. Carries no secret: the response body, headers, or API key are never written here under any condition — only the HTTP status code and a short description.
public string? Detail { get; init; }Property Value
Section titled “Property Value”Latency
Section titled “ Latency”How long the check request took.
public TimeSpan? Latency { get; init; }Property Value
Section titled “Property Value”Models
Section titled “ Models”The model names the server reported. Empty if the check failed.
public IReadOnlyList<string> Models { get; init; }Property Value
Section titled “Property Value”ProviderName
Section titled “ ProviderName”The provider name.
public required string ProviderName { get; init; }Property Value
Section titled “Property Value”Status
Section titled “ Status”The check result.
public required ModelProviderHealthStatus Status { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(ModelProviderHealth?)
Section titled “ Equals(ModelProviderHealth?)”public bool Equals(ModelProviderHealth? other)Parameters
Section titled “Parameters”other ModelProviderHealth?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(ModelProviderHealth?, ModelProviderHealth?)
Section titled “ operator ==(ModelProviderHealth?, ModelProviderHealth?)”public static bool operator ==(ModelProviderHealth? left, ModelProviderHealth? right)Parameters
Section titled “Parameters”left ModelProviderHealth?
right ModelProviderHealth?
Returns
Section titled “Returns”operator !=(ModelProviderHealth?, ModelProviderHealth?)
Section titled “ operator !=(ModelProviderHealth?, ModelProviderHealth?)”public static bool operator !=(ModelProviderHealth? left, ModelProviderHealth? right)Parameters
Section titled “Parameters”left ModelProviderHealth?
right ModelProviderHealth?