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