pub struct SyscallAnomalyDetector { /* private fields */ }Expand description
Stateful syscall anomaly detector.
Tracks event rates, alert budgets, and cooldown windows.
Implementations§
Source§impl SyscallAnomalyDetector
impl SyscallAnomalyDetector
pub fn new(config: SyscallAnomalyConfig) -> Self
Sourcepub fn analyze(&mut self, command_output: &str) -> AnomalyVerdict
pub fn analyze(&mut self, command_output: &str) -> AnomalyVerdict
Analyze shell command output for syscall anomalies.
Sourcepub fn syscall_counts(&self) -> &HashMap<String, u32>
pub fn syscall_counts(&self) -> &HashMap<String, u32>
Return the accumulated syscall counts.
Auto Trait Implementations§
impl Freeze for SyscallAnomalyDetector
impl RefUnwindSafe for SyscallAnomalyDetector
impl Send for SyscallAnomalyDetector
impl Sync for SyscallAnomalyDetector
impl Unpin for SyscallAnomalyDetector
impl UnsafeUnpin for SyscallAnomalyDetector
impl UnwindSafe for SyscallAnomalyDetector
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