pub struct NoopMetrics;Expand description
No-op implementation for use when metrics are disabled (e.g., rsigma run).
Trait Implementations§
Source§impl MetricsHook for NoopMetrics
impl MetricsHook for NoopMetrics
Source§fn on_parse_error(&self)
fn on_parse_error(&self)
A JSON line failed to parse.
Source§fn on_events_processed(&self, _count: u64)
fn on_events_processed(&self, _count: u64)
count events were successfully evaluated.Source§fn on_detection_matches(&self, _count: u64)
fn on_detection_matches(&self, _count: u64)
count detection rule matches were produced.Source§fn on_correlation_matches(&self, _count: u64)
fn on_correlation_matches(&self, _count: u64)
count correlation rule matches were produced.Source§fn observe_processing_latency(&self, _seconds: f64)
fn observe_processing_latency(&self, _seconds: f64)
Observe per-event processing latency in seconds.
Source§fn on_input_queue_depth_change(&self, _delta: i64)
fn on_input_queue_depth_change(&self, _delta: i64)
The input queue depth changed by
delta (positive = enqueue, negative = dequeue).Source§fn on_back_pressure(&self)
fn on_back_pressure(&self)
Back-pressure event: a source tried to send but the channel was full.
Source§fn observe_batch_size(&self, _size: u64)
fn observe_batch_size(&self, _size: u64)
Observe the batch size used for a single engine lock acquisition.
Source§fn on_output_queue_depth_change(&self, _delta: i64)
fn on_output_queue_depth_change(&self, _delta: i64)
The output queue depth changed by
delta.Source§fn observe_pipeline_latency(&self, _seconds: f64)
fn observe_pipeline_latency(&self, _seconds: f64)
Observe end-to-end pipeline latency (dequeue → sink) in seconds.
Source§fn set_correlation_state_entries(&self, _count: u64)
fn set_correlation_state_entries(&self, _count: u64)
Report current correlation state entry count.
Source§fn on_detection_match_detail(&self, _rule_title: &str, _level: &str)
fn on_detection_match_detail(&self, _rule_title: &str, _level: &str)
A single detection rule matched. Labels enable per-rule Prometheus counters.
Auto Trait Implementations§
impl Freeze for NoopMetrics
impl RefUnwindSafe for NoopMetrics
impl Send for NoopMetrics
impl Sync for NoopMetrics
impl Unpin for NoopMetrics
impl UnsafeUnpin for NoopMetrics
impl UnwindSafe for NoopMetrics
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointerSource§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
Source§impl<T, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
impl<T, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
fn coerce_rc_to(self: Rc<X>) -> Rc<T>
fn coerce_box_to(self: Box<X>) -> Box<T>
fn coerce_ref_to(&self) -> &T
fn coerce_mut_to(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more