use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AndonThresholds {
pub thermal_warning: u32,
pub thermal_critical: u32,
pub memory_warning: u32,
pub memory_critical: u32,
pub power_warning: u32,
pub idle_threshold_secs: u32,
}
impl Default for AndonThresholds {
fn default() -> Self {
Self {
thermal_warning: 80,
thermal_critical: 90,
memory_warning: 90,
memory_critical: 95,
power_warning: 95,
idle_threshold_secs: 30,
}
}
}