pub struct ThresholdAlert {
pub metric_pattern: String,
pub threshold: f64,
pub above: bool,
}Expand description
Threshold-based alert configuration.
Fields§
§metric_pattern: StringMetric name pattern
threshold: f64Threshold value
above: boolAlert when above (true) or below (false)
Trait Implementations§
Source§impl Clone for ThresholdAlert
impl Clone for ThresholdAlert
Source§fn clone(&self) -> ThresholdAlert
fn clone(&self) -> ThresholdAlert
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 moreAuto Trait Implementations§
impl Freeze for ThresholdAlert
impl RefUnwindSafe for ThresholdAlert
impl Send for ThresholdAlert
impl Sync for ThresholdAlert
impl Unpin for ThresholdAlert
impl UnwindSafe for ThresholdAlert
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