pub struct AnomalyAlert {
pub dimension: HarmonyDimension,
pub z_score: f32,
pub direction: AnomalyDirection,
pub severity: AnomalySeverity,
pub impact: AnomalyImpact,
pub current_value: f32,
pub baseline_mean: f32,
pub baseline_std: f32,
}Expand description
An anomaly alert for a single harmony dimension.
Fields§
§dimension: HarmonyDimensionWhich dimension is anomalous.
z_score: f32The z-score of the current value.
direction: AnomalyDirectionWhether the value is above or below the baseline.
severity: AnomalySeveritySeverity level (Warning or Critical).
impact: AnomalyImpactWhether the deviation is harmful or beneficial.
current_value: f32The current value.
baseline_mean: f32The rolling mean at the time of detection.
baseline_std: f32The rolling std dev at the time of detection.
Implementations§
Trait Implementations§
Source§impl Clone for AnomalyAlert
impl Clone for AnomalyAlert
Source§fn clone(&self) -> AnomalyAlert
fn clone(&self) -> AnomalyAlert
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AnomalyAlert
impl Debug for AnomalyAlert
Source§impl<'de> Deserialize<'de> for AnomalyAlert
impl<'de> Deserialize<'de> for AnomalyAlert
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 AnomalyAlert
impl RefUnwindSafe for AnomalyAlert
impl Send for AnomalyAlert
impl Sync for AnomalyAlert
impl Unpin for AnomalyAlert
impl UnsafeUnpin for AnomalyAlert
impl UnwindSafe for AnomalyAlert
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