#[non_exhaustive]pub struct ScanScore<K> {
pub key: K,
pub verdict: ScanVerdict,
pub log_likelihood: f64,
pub n_observed: u32,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: K§verdict: ScanVerdict§log_likelihood: f64§n_observed: u32Implementations§
Source§impl<K> ScanScore<K>
impl<K> ScanScore<K>
Sourcepub fn into_anomaly(self, ts: Timestamp) -> OwnedAnomaly
Available on crate feature tracker only.
pub fn into_anomaly(self, ts: Timestamp) -> OwnedAnomaly
tracker only.Convert into the canonical OwnedAnomaly shape with
the given timestamp. Severity follows verdict:
Scanner → Warning, Benign/Inconclusive → Info.
Metrics emitted: log_likelihood, n_observed.
Observations emitted: verdict (slug).
Gated on the tracker feature — OwnedAnomaly lives
there.
Trait Implementations§
Source§impl<K> DetectorScore for ScanScore<K>
Available on crate feature tracker only.
impl<K> DetectorScore for ScanScore<K>
Available on crate feature
tracker only.Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Stable detector name slug. Used as
OwnedAnomaly::kind
(which maps to EVE anomaly.event) and as a metric label.Source§fn into_anomaly(self, ts: Timestamp) -> OwnedAnomaly
fn into_anomaly(self, ts: Timestamp) -> OwnedAnomaly
Convert into the canonical owned anomaly with the given
timestamp. Read more
Auto Trait Implementations§
impl<K> Freeze for ScanScore<K>where
K: Freeze,
impl<K> RefUnwindSafe for ScanScore<K>where
K: RefUnwindSafe,
impl<K> Send for ScanScore<K>where
K: Send,
impl<K> Sync for ScanScore<K>where
K: Sync,
impl<K> Unpin for ScanScore<K>where
K: Unpin,
impl<K> UnsafeUnpin for ScanScore<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for ScanScore<K>where
K: UnwindSafe,
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