pub struct AnomalyEvent {
pub anomaly_id: AnomalyId,
pub score: f32,
pub severity: Severity,
pub reasons: Vec<AnomalyReason>,
pub evidence: Vec<EventId>,
pub subject_id: Option<SubjectId>,
pub source_id: Option<SourceId>,
pub at: MediaTime,
}Expand description
Backend-neutral anomaly event exposed to host products.
Hosts must not depend on whether the score came from a statistical rule, classical model, or optional quantum backend.
Fields§
§anomaly_id: AnomalyIdAnomaly id.
score: f32Score (higher means more anomalous; scale is backend-defined).
severity: SeverityPresentation severity.
reasons: Vec<AnomalyReason>Reason codes.
evidence: Vec<EventId>Supporting event ids from the same index.
subject_id: Option<SubjectId>Optional subject scope.
source_id: Option<SourceId>Optional source scope.
at: MediaTimeEvent time.
Trait Implementations§
Source§impl Clone for AnomalyEvent
impl Clone for AnomalyEvent
Source§impl Debug for AnomalyEvent
impl Debug for AnomalyEvent
Source§impl PartialEq for AnomalyEvent
impl PartialEq for AnomalyEvent
impl StructuralPartialEq for AnomalyEvent
Auto Trait Implementations§
impl Freeze for AnomalyEvent
impl RefUnwindSafe for AnomalyEvent
impl Send for AnomalyEvent
impl Sync for AnomalyEvent
impl Unpin for AnomalyEvent
impl UnsafeUnpin for AnomalyEvent
impl UnwindSafe for AnomalyEvent
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