pub struct Alert {
pub id: String,
pub title: String,
pub description: String,
pub severity: AlertSeverity,
pub state: AlertState,
pub triggered_at: SystemTime,
pub labels: HashMap<String, String>,
pub annotations: HashMap<String, String>,
pub source_rule: String,
pub current_value: Option<f64>,
pub threshold_value: Option<f64>,
}Expand description
Alert structure
Fields§
§id: StringUnique alert identifier
title: StringAlert title
description: StringAlert description
severity: AlertSeverityAlert severity
state: AlertStateAlert state
triggered_at: SystemTimeTimestamp when alert was triggered
labels: HashMap<String, String>Labels associated with alert
annotations: HashMap<String, String>Additional annotations
source_rule: StringAlert source rule
current_value: Option<f64>Current metric value
threshold_value: Option<f64>Threshold value
Trait Implementations§
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