pub struct AnomalyResult {
pub metric_name: String,
pub current_value: f64,
pub expected_value: f64,
pub deviation: f64,
pub method: DetectionMethod,
pub severity: ThreatSeverity,
pub description: String,
}Expand description
Result of anomaly detection
Fields§
§metric_name: String§current_value: f64§expected_value: f64§deviation: f64§method: DetectionMethod§severity: ThreatSeverity§description: StringImplementations§
Source§impl AnomalyResult
impl AnomalyResult
Sourcepub fn to_threat_alert(&self, source_log: &LogEntry) -> ThreatAlert
pub fn to_threat_alert(&self, source_log: &LogEntry) -> ThreatAlert
Convert to ThreatAlert
Trait Implementations§
Source§impl Clone for AnomalyResult
impl Clone for AnomalyResult
Source§fn clone(&self) -> AnomalyResult
fn clone(&self) -> AnomalyResult
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 moreAuto Trait Implementations§
impl Freeze for AnomalyResult
impl RefUnwindSafe for AnomalyResult
impl Send for AnomalyResult
impl Sync for AnomalyResult
impl Unpin for AnomalyResult
impl UnwindSafe for AnomalyResult
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