Skip to main content

Mountain/IPC/Enhanced/PerformanceDashboard/
PerformanceAlert.rs

1#![allow(non_snake_case)]
2
3//! Threshold-violation alert raised by the dashboard - what
4//! tripped, current vs threshold, severity, human-readable
5//! message.
6
7use serde::{Deserialize, Serialize};
8
9use crate::IPC::Enhanced::PerformanceDashboard::{AlertSeverity, MetricType};
10
11#[derive(Debug, Clone, Serialize, Deserialize)]
12pub struct Struct {
13	pub alert_id:String,
14
15	pub metric_type:MetricType::Enum,
16
17	pub threshold:f64,
18
19	pub current_value:f64,
20
21	pub timestamp:u64,
22
23	pub channel:Option<String>,
24
25	pub severity:AlertSeverity::Enum,
26
27	pub message:String,
28}