pub struct Anomaly {
pub anomaly_id: Option<String>,
pub anomaly_type: Option<String>,
pub severity: Option<AnomalySeverity>,
pub description: Option<String>,
pub confidence: Option<f64>,
pub anomaly_score: Option<f64>,
pub timestamp: Option<DateTime<Utc>>,
pub source: Option<String>,
pub component: Option<String>,
pub is_active: Option<bool>,
pub recommended_action: Option<String>,
}Expand description
Detected anomaly.
Fields§
§anomaly_id: Option<String>Anomaly ID
anomaly_type: Option<String>Anomaly type/category
severity: Option<AnomalySeverity>Severity
description: Option<String>Description
confidence: Option<f64>Confidence score (0-1)
anomaly_score: Option<f64>Anomaly score (higher = more anomalous)
timestamp: Option<DateTime<Utc>>Detection timestamp
source: Option<String>Source/detector
component: Option<String>Affected component
is_active: Option<bool>Whether anomaly is still active
recommended_action: Option<String>Recommended action
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Anomaly
impl<'de> Deserialize<'de> for Anomaly
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 Anomaly
impl RefUnwindSafe for Anomaly
impl Send for Anomaly
impl Sync for Anomaly
impl Unpin for Anomaly
impl UnwindSafe for Anomaly
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