Skip to main content

Mountain/IPC/Enhanced/PerformanceDashboard/
PerformanceAlert.rs

1
2//! Threshold-violation alert raised by the dashboard - what
3//! tripped, current vs threshold, severity, human-readable
4//! message.
5
6use 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}