pub struct Alert {
pub id: String,
pub rule_id: String,
pub severity: AlertSeverity,
pub message: String,
pub triggered_at: u64,
pub resolved_at: Option<u64>,
pub is_active: bool,
pub context: HashMap<String, String>,
}Expand description
An active alert
Fields§
§id: StringUnique identifier for the alert
rule_id: StringRule that triggered this alert
severity: AlertSeverityAlert severity
message: StringAlert message
triggered_at: u64Timestamp when the alert was triggered
resolved_at: Option<u64>Timestamp when the alert was resolved (if resolved)
is_active: boolWhether the alert is currently active
context: HashMap<String, String>Additional context data
Implementations§
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 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