pub struct Alert {
pub id: AlertId,
pub rule_id: AlertId,
pub triggered_at: SystemTime,
pub resolved_at: Option<SystemTime>,
pub severity: AlertSeverity,
pub message: String,
pub value: f64,
}Expand description
Active alert.
Fields§
§id: AlertIdUnique identifier for this alert instance
rule_id: AlertIdThe rule that triggered this alert
triggered_at: SystemTimeWhen the alert was triggered
resolved_at: Option<SystemTime>When the alert was resolved (if resolved)
severity: AlertSeveritySeverity level of the alert
message: StringHuman-readable alert message
value: f64Value that triggered the alert
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
Auto Trait Implementations§
impl Freeze for Alert
impl RefUnwindSafe for Alert
impl Send for Alert
impl Sync for Alert
impl Unpin for Alert
impl UnsafeUnpin 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