pub enum AlertCondition {
Threshold {
metric: String,
operator: ThresholdOperator,
value: f64,
duration: Duration,
},
RateOfChange {
metric: String,
rate_threshold: f64,
duration: Duration,
},
Anomaly {
metric: String,
sensitivity: f64,
baseline_duration: Duration,
},
Expression {
expression: String,
duration: Duration,
},
}Expand description
Alert condition types
Variants§
Threshold
Simple threshold condition
RateOfChange
Rate of change condition
Anomaly
Anomaly detection condition
Expression
Complex expression condition
Trait Implementations§
Source§impl Clone for AlertCondition
impl Clone for AlertCondition
Source§fn clone(&self) -> AlertCondition
fn clone(&self) -> AlertCondition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
Auto Trait Implementations§
impl Freeze for AlertCondition
impl RefUnwindSafe for AlertCondition
impl Send for AlertCondition
impl Sync for AlertCondition
impl Unpin for AlertCondition
impl UnwindSafe for AlertCondition
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