pub struct ProviderStatus {
pub tenant_id: String,
pub provider_id: String,
pub state: ProviderState,
pub last_refresh: Option<DateTime<Utc>>,
pub next_refresh: Option<DateTime<Utc>>,
pub expires_at: Option<DateTime<Utc>>,
pub error_count: u32,
pub hit_rate: f64,
pub stale_serve_ratio: f64,
pub metrics: Vec<StatusMetric>,
}Expand description
Status projection for a provider, aligned with the OpenAPI contract.
Fields§
§tenant_id: StringTenant identifier that owns the provider.
provider_id: StringProvider identifier unique within the tenant.
state: ProviderStateLifecycle state currently reported for the provider.
last_refresh: Option<DateTime<Utc>>Timestamp of the most recent successful refresh.
next_refresh: Option<DateTime<Utc>>Scheduled timestamp for the next refresh attempt.
expires_at: Option<DateTime<Utc>>Expiration timestamp for the active payload, if available.
error_count: u32Consecutive error count observed during refresh attempts.
hit_rate: f64Ratio of cache hits to total requests.
stale_serve_ratio: f64Ratio of served responses that were stale.
metrics: Vec<StatusMetric>Metrics emitted to describe provider performance.
Trait Implementations§
Source§impl Clone for ProviderStatus
impl Clone for ProviderStatus
Source§fn clone(&self) -> ProviderStatus
fn clone(&self) -> ProviderStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProviderStatus
impl Debug for ProviderStatus
Source§impl<'de> Deserialize<'de> for ProviderStatus
impl<'de> Deserialize<'de> for ProviderStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProviderStatus
impl RefUnwindSafe for ProviderStatus
impl Send for ProviderStatus
impl Sync for ProviderStatus
impl Unpin for ProviderStatus
impl UnwindSafe for ProviderStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more