pub struct AnomalyStats {
pub total_events: usize,
pub anomaly_events: usize,
pub anomaly_rate: f64,
pub by_type: HashMap<String, usize>,
}Expand description
Summary statistics about anomalies in the event trail.
Fields§
§total_events: usizeTotal events in the trail.
anomaly_events: usizeNumber of events flagged as anomalies.
anomaly_rate: f64Anomaly rate (anomaly_events / total_events).
by_type: HashMap<String, usize>Anomaly counts by type.
Trait Implementations§
Source§impl Clone for AnomalyStats
impl Clone for AnomalyStats
Source§fn clone(&self) -> AnomalyStats
fn clone(&self) -> AnomalyStats
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 AnomalyStats
impl Debug for AnomalyStats
Auto Trait Implementations§
impl Freeze for AnomalyStats
impl RefUnwindSafe for AnomalyStats
impl Send for AnomalyStats
impl Sync for AnomalyStats
impl Unpin for AnomalyStats
impl UnsafeUnpin for AnomalyStats
impl UnwindSafe for AnomalyStats
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