pub enum AlertRuleKind {
FailureRate {
trip_threshold: f64,
clear_threshold: f64,
window: Duration,
min_samples: u64,
},
QueueDepth {
trip_depth: u64,
clear_depth: u64,
queue: Option<String>,
},
NoHeartbeat {
timeout: Duration,
},
}Expand description
The condition a rule monitors.
Variants§
FailureRate
Trip when the failure rate over the recent event window meets/exceeds
trip_threshold (0.0..=1.0). Requires at least min_samples completed
tasks in the window before it can fire.
Fields
QueueDepth
Trip when the observed queue depth meets/exceeds trip_depth.
Fields
NoHeartbeat
Trip when no worker heartbeat (or snapshot with workers) has been seen
within timeout.
Trait Implementations§
Source§impl Clone for AlertRuleKind
impl Clone for AlertRuleKind
Auto Trait Implementations§
impl Freeze for AlertRuleKind
impl RefUnwindSafe for AlertRuleKind
impl Send for AlertRuleKind
impl Sync for AlertRuleKind
impl Unpin for AlertRuleKind
impl UnsafeUnpin for AlertRuleKind
impl UnwindSafe for AlertRuleKind
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