Skip to main content

Mountain/IPC/StatusReporter/
HealthMonitor.rs

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