pub struct AlertRuleCatalog { /* private fields */ }Expand description
In-memory rule catalog. It stores rules, not emitted alerts.
Implementations§
Source§impl AlertRuleCatalog
impl AlertRuleCatalog
pub fn new() -> Self
pub fn record_rule(&mut self, rule: AlertRule) -> Option<AlertRule>
pub fn evaluate_all( &self, observed_severity: ThreatSeverity, ) -> Vec<AlertEvaluation>
pub fn matching_rules( &self, observed_severity: ThreatSeverity, ) -> Vec<&AlertRule>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for AlertRuleCatalog
impl Clone for AlertRuleCatalog
Source§fn clone(&self) -> AlertRuleCatalog
fn clone(&self) -> AlertRuleCatalog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AlertRuleCatalog
impl Debug for AlertRuleCatalog
Source§impl Default for AlertRuleCatalog
impl Default for AlertRuleCatalog
Source§fn default() -> AlertRuleCatalog
fn default() -> AlertRuleCatalog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AlertRuleCatalog
impl RefUnwindSafe for AlertRuleCatalog
impl Send for AlertRuleCatalog
impl Sync for AlertRuleCatalog
impl Unpin for AlertRuleCatalog
impl UnsafeUnpin for AlertRuleCatalog
impl UnwindSafe for AlertRuleCatalog
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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