Mountain/IPC/Enhanced/PerformanceDashboard/
PerformanceAlert.rs1
2use serde::{Deserialize, Serialize};
7
8use crate::IPC::Enhanced::PerformanceDashboard::{AlertSeverity, MetricType};
9
10#[derive(Debug, Clone, Serialize, Deserialize)]
11pub struct Struct {
12 pub alert_id:String,
13
14 pub metric_type:MetricType::Enum,
15
16 pub threshold:f64,
17
18 pub current_value:f64,
19
20 pub timestamp:u64,
21
22 pub channel:Option<String>,
23
24 pub severity:AlertSeverity::Enum,
25
26 pub message:String,
27}