pub struct HealthMetrics {
pub overall_health_score: f64,
pub component_health: HashMap<String, f64>,
pub service_availability: f64,
pub data_consistency_score: f64,
pub performance_score: f64,
pub last_health_check: DateTime<Utc>,
}Expand description
Health monitoring metrics
Fields§
§overall_health_score: f64Overall system health score (0.0 to 1.0)
component_health: HashMap<String, f64>Component health scores
service_availability: f64Service availability (0.0 to 1.0)
data_consistency_score: f64Data consistency score (0.0 to 1.0)
performance_score: f64Performance score (0.0 to 1.0)
last_health_check: DateTime<Utc>Last health check timestamp
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 · 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 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