pub enum PatternAnomaly {
Timeout {
pattern: String,
content_length: u64,
},
SlowExecution {
pattern: String,
execution_time: f64,
content_length: u64,
},
Statistical {
pattern: String,
execution_time: f64,
z_score: f64,
avg_time: f64,
std_time: f64,
},
}Expand description
The anomaly kinds, with the payload the reference attaches.
Variants§
Timeout
A timeout execution (pattern_anomaly_timeout).
Fields
SlowExecution
An execution over the slow threshold, non-timeout
(pattern_anomaly_slow_execution).
Fields
Statistical
A z-score over the threshold against the recent window
(pattern_anomaly_statistical_anomaly).
Implementations§
Trait Implementations§
Source§impl Clone for PatternAnomaly
impl Clone for PatternAnomaly
Source§impl Debug for PatternAnomaly
impl Debug for PatternAnomaly
Source§impl PartialEq for PatternAnomaly
impl PartialEq for PatternAnomaly
impl StructuralPartialEq for PatternAnomaly
Auto Trait Implementations§
impl Freeze for PatternAnomaly
impl RefUnwindSafe for PatternAnomaly
impl Send for PatternAnomaly
impl Sync for PatternAnomaly
impl Unpin for PatternAnomaly
impl UnsafeUnpin for PatternAnomaly
impl UnwindSafe for PatternAnomaly
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