Skip to main content

SecurityEventSink

Trait SecurityEventSink 

Source
pub trait SecurityEventSink: Send {
    // Required method
    fn push(
        &mut self,
        category: SecurityEventCategory,
        source: &'static str,
        detail: String,
    );
}
Expand description

Abstract sink for security events raised during context assembly.

Implemented in zeph-core by a stack-local adapter that appends to Agent<C>::runtime.metrics.security_events. Using a trait keeps this crate free of zeph-core internal types.

Required Methods§

Source

fn push( &mut self, category: SecurityEventCategory, source: &'static str, detail: String, )

Record a security event.

Implementors§