pub struct HealthMetrics {
pub overall_health: HealthStatus,
pub last_health_check: SystemTime,
pub health_mode: HealthCheckMode,
pub last_verified_health_check: Option<SystemTime>,
pub consecutive_failures: u32,
pub recovery_attempts: u32,
pub system_uptime: Duration,
pub last_success_time: Option<SystemTime>,
pub last_failure_time: Option<SystemTime>,
}Expand description
Current health assessment and recovery history.
Fields§
§overall_health: HealthStatusDerived overall health state.
last_health_check: SystemTimeTime the health state was last calculated.
health_mode: HealthCheckModeWhether health is passive or confirmed by an active request.
last_verified_health_check: Option<SystemTime>Time of the most recent active health check.
consecutive_failures: u32Consecutive failures since the last success.
recovery_attempts: u32Recovery resets requested by the caller.
system_uptime: DurationElapsed time since monitoring began.
last_success_time: Option<SystemTime>Time of the most recent successful operation.
last_failure_time: Option<SystemTime>Time of the most recent failed operation.
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
Source§impl<'de> Deserialize<'de> for HealthMetrics
impl<'de> Deserialize<'de> for HealthMetrics
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 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