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	pub metric_type:MetricType::Enum,
15	pub threshold:f64,
16	pub current_value:f64,
17	pub timestamp:u64,
18	pub channel:Option<String>,
19	pub severity:AlertSeverity::Enum,
20	pub message:String,
21}