pub struct ProviderHealth {
pub provider_id: String,
pub healthy: bool,
pub last_success: Option<Instant>,
pub last_failure: Option<Instant>,
pub consecutive_failures: usize,
pub avg_latency_ms: f64,
pub success_rate: f64,
pub total_requests: u64,
pub total_bytes: u64,
}Expand description
Health status of a cloud provider
Fields§
§provider_id: StringProvider ID
healthy: boolIs the provider healthy
last_success: Option<Instant>Last successful request time
last_failure: Option<Instant>Last failure time
consecutive_failures: usizeConsecutive failure count
avg_latency_ms: f64Average latency in milliseconds
success_rate: f64Success rate (0.0 to 1.0)
total_requests: u64Total requests served
total_bytes: u64Total bytes transferred
Trait Implementations§
Source§impl Clone for ProviderHealth
impl Clone for ProviderHealth
Source§fn clone(&self) -> ProviderHealth
fn clone(&self) -> ProviderHealth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProviderHealth
impl RefUnwindSafe for ProviderHealth
impl Send for ProviderHealth
impl Sync for ProviderHealth
impl Unpin for ProviderHealth
impl UnsafeUnpin for ProviderHealth
impl UnwindSafe for ProviderHealth
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