pub struct BehavioralAnomalyScore {
pub agent_id: String,
pub baseline: EmaBaselineState,
pub current_sample: f64,
pub z_score: Option<f64>,
pub sigma_threshold: f64,
pub anomaly: bool,
pub generated_at: u64,
}Expand description
Summary of behavioral-anomaly signals derived from receipts over a
window. Used by BehavioralProfileGuard and surfaced in operator
UIs.
Fields§
§agent_id: StringAgent subject this anomaly score applies to.
baseline: EmaBaselineStateBaseline statistic the z-score is computed against.
current_sample: f64Current-window sample value (e.g. call count per window).
z_score: Option<f64>Computed z-score, or None when baseline is too small.
sigma_threshold: f64Threshold above which an advisory signal is raised.
anomaly: boolWhether the current sample crossed the threshold.
generated_at: u64Unix timestamp (seconds) at which the score was computed.
Trait Implementations§
Source§impl Clone for BehavioralAnomalyScore
impl Clone for BehavioralAnomalyScore
Source§fn clone(&self) -> BehavioralAnomalyScore
fn clone(&self) -> BehavioralAnomalyScore
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 BehavioralAnomalyScore
impl Debug for BehavioralAnomalyScore
Source§impl Default for BehavioralAnomalyScore
impl Default for BehavioralAnomalyScore
Source§fn default() -> BehavioralAnomalyScore
fn default() -> BehavioralAnomalyScore
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BehavioralAnomalyScore
impl<'de> Deserialize<'de> for BehavioralAnomalyScore
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BehavioralAnomalyScore
impl PartialEq for BehavioralAnomalyScore
Source§impl Serialize for BehavioralAnomalyScore
impl Serialize for BehavioralAnomalyScore
impl StructuralPartialEq for BehavioralAnomalyScore
Auto Trait Implementations§
impl Freeze for BehavioralAnomalyScore
impl RefUnwindSafe for BehavioralAnomalyScore
impl Send for BehavioralAnomalyScore
impl Sync for BehavioralAnomalyScore
impl Unpin for BehavioralAnomalyScore
impl UnsafeUnpin for BehavioralAnomalyScore
impl UnwindSafe for BehavioralAnomalyScore
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