entrenar/monitor/gpu/alert/
thresholds.rs1use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Clone, Serialize, Deserialize)]
7pub struct AndonThresholds {
8 pub thermal_warning: u32,
10 pub thermal_critical: u32,
12 pub memory_warning: u32,
14 pub memory_critical: u32,
16 pub power_warning: u32,
18 pub idle_threshold_secs: u32,
20}
21
22impl Default for AndonThresholds {
23 fn default() -> Self {
24 Self {
25 thermal_warning: 80,
26 thermal_critical: 90,
27 memory_warning: 90,
28 memory_critical: 95,
29 power_warning: 95,
30 idle_threshold_secs: 30,
31 }
32 }
33}