pub struct ThresholdViolation {
pub metric: String,
pub threshold: f64,
pub actual: f64,
pub severity: String,
}Expand description
A single threshold violation
Fields§
§metric: StringName of the metric that violated threshold
threshold: f64Threshold value
actual: f64Actual value
severity: StringSeverity: “error” or “warning”
Trait Implementations§
Source§impl Clone for ThresholdViolation
impl Clone for ThresholdViolation
Source§fn clone(&self) -> ThresholdViolation
fn clone(&self) -> ThresholdViolation
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 ThresholdViolation
impl Debug for ThresholdViolation
Source§impl Default for ThresholdViolation
impl Default for ThresholdViolation
Source§fn default() -> ThresholdViolation
fn default() -> ThresholdViolation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThresholdViolation
impl<'de> Deserialize<'de> for ThresholdViolation
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 ThresholdViolation
impl RefUnwindSafe for ThresholdViolation
impl Send for ThresholdViolation
impl Sync for ThresholdViolation
impl Unpin for ThresholdViolation
impl UnsafeUnpin for ThresholdViolation
impl UnwindSafe for ThresholdViolation
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