pub struct HealthMetrics {
pub total_checks: u64,
pub average_response_time: Option<Duration>,
pub uptime_percentage: f64,
pub last_successful_check: Option<Instant>,
pub monitoring_start_time: Instant,
}Expand description
Health metrics for monitoring and reporting
Fields§
§total_checks: u64Total health checks performed
average_response_time: Option<Duration>Average response time
uptime_percentage: f64Uptime percentage
last_successful_check: Option<Instant>Last successful check time
monitoring_start_time: InstantHealth check start time
Implementations§
Source§impl HealthMetrics
impl HealthMetrics
Trait Implementations§
Source§impl Clone for HealthMetrics
impl Clone for HealthMetrics
Source§fn clone(&self) -> HealthMetrics
fn clone(&self) -> HealthMetrics
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 moreSource§impl Debug for HealthMetrics
impl Debug for HealthMetrics
Auto Trait Implementations§
impl Freeze for HealthMetrics
impl RefUnwindSafe for HealthMetrics
impl Send for HealthMetrics
impl Sync for HealthMetrics
impl Unpin for HealthMetrics
impl UnsafeUnpin for HealthMetrics
impl UnwindSafe for HealthMetrics
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