pub struct Alert {
pub severity: AlertSeverity,
pub title: String,
pub message: String,
pub event: Event,
pub timestamp: DateTime<Utc>,
pub metadata: HashMap<String, String>,
}Expand description
Alert triggered by an event
Fields§
§severity: AlertSeverityAlert severity
title: StringAlert title/summary
message: StringAlert description
event: EventEvent that triggered the alert
timestamp: DateTime<Utc>Timestamp when alert was triggered
metadata: HashMap<String, String>Additional metadata
Implementations§
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