pub enum Event {
Heartbeat {
uptime_secs: u64,
},
ServiceDown {
name: String,
},
ServiceUp {
name: String,
},
DiskWarning {
mount: String,
percent: u8,
},
DiskHigh {
mount: String,
percent: u8,
},
MemoryWarning {
percent: u8,
},
MemoryHigh {
percent: u8,
},
LoadWarning {
load_1m: f32,
},
LoadHigh {
load_1m: f32,
},
HostUnreachable,
}Variants§
Heartbeat
ServiceDown
ServiceUp
DiskWarning
Disk usage crossed the warning threshold (default 10pp below disk_high).
Heads-up alert before things go critical. Suppressed if the value is
already in critical range — DiskHigh covers that case.
DiskHigh
MemoryWarning
Memory usage crossed the warning threshold (default 10pp below memory_high).
MemoryHigh
LoadWarning
1-minute load crossed the warning threshold (default 75% of load_1m_high).
LoadHigh
HostUnreachable
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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