Mountain/IPC/StatusReporter/HealthMonitor.rs
1
2//! Aggregated health snapshot - 0-100 score plus the list of
3//! `HealthIssue::Struct` entries that drove the deductions, and
4//! a counter for automatic-recovery attempts.
5
6use serde::{Deserialize, Serialize};
7
8use crate::IPC::StatusReporter::HealthIssue;
9
10#[derive(Debug, Clone, Serialize, Deserialize)]
11pub struct Struct {
12 pub health_score:f64,
13
14 pub last_health_check:u64,
15
16 pub issues_detected:Vec<HealthIssue::Struct>,
17
18 pub recovery_attempts:u32,
19}