pub enum AlertCondition {
MissedSchedule {
expected_at: DateTime<Utc>,
detected_at: DateTime<Utc>,
},
ConsecutiveFailures {
count: u32,
threshold: u32,
},
HighFailureRate {
rate: String,
threshold: String,
},
SlowExecution {
duration_ms: u64,
threshold_ms: u64,
},
TaskStuck {
idle_duration_seconds: i64,
expected_interval_seconds: u64,
},
TaskUnhealthy {
issues: Vec<String>,
},
}Expand description
Alert condition that triggered the alert
Variants§
MissedSchedule
Schedule was missed (task didn’t execute when expected)
Fields
ConsecutiveFailures
Multiple consecutive failures
Fields
HighFailureRate
High failure rate detected
SlowExecution
Slow execution detected
Fields
TaskStuck
Task is stuck (not executing for extended period)
Fields
TaskUnhealthy
Task has become unhealthy
Trait Implementations§
Source§impl Clone for AlertCondition
impl Clone for AlertCondition
Source§impl Debug for AlertCondition
impl Debug for AlertCondition
Source§impl<'de> Deserialize<'de> for AlertCondition
impl<'de> Deserialize<'de> for AlertCondition
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
Source§impl Display for AlertCondition
impl Display for AlertCondition
impl Eq for AlertCondition
Source§impl Hash for AlertCondition
impl Hash for AlertCondition
Source§impl PartialEq for AlertCondition
impl PartialEq for AlertCondition
Source§impl Serialize for AlertCondition
impl Serialize for AlertCondition
impl StructuralPartialEq for AlertCondition
Auto Trait Implementations§
impl Freeze for AlertCondition
impl RefUnwindSafe for AlertCondition
impl Send for AlertCondition
impl Sync for AlertCondition
impl Unpin for AlertCondition
impl UnsafeUnpin for AlertCondition
impl UnwindSafe for AlertCondition
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.