pub struct Alert {
pub source: String,
pub code: String,
pub message: String,
pub severity: AlertSeverity,
pub timestamp: Timestamp,
}Expand description
An alert fired by a component or rule.
Fields§
§source: StringThe component or subsystem that raised the alert.
code: StringFree-form alert code (e.g. "CPU_OVER_THRESHOLD").
message: StringHuman-readable description of what happened.
severity: AlertSeverityAlert severity.
timestamp: TimestampWhen the alert was created (nanos since Unix epoch).
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 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