pub struct Alert {
pub id: String,
pub rule_id: String,
pub metric_name: String,
pub value: f64,
pub threshold: f64,
pub severity: AlertSeverity,
pub message: String,
pub timestamp: u64,
pub acknowledged: bool,
}Expand description
Alert data structure
Fields§
§id: StringAlert ID
rule_id: StringRule ID that triggered the alert
metric_name: StringMetric name
value: f64Metric value that triggered the alert
threshold: f64Threshold value
severity: AlertSeverityAlert severity
message: StringAlert message
timestamp: u64Alert timestamp
acknowledged: boolWhether the alert has been acknowledged
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Alert
impl<'de> Deserialize<'de> for Alert
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Alert
Auto Trait Implementations§
impl Freeze for Alert
impl RefUnwindSafe for Alert
impl Send for Alert
impl Sync for Alert
impl Unpin for Alert
impl UnwindSafe for Alert
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more