pub struct SiemEmitter { /* private fields */ }Expand description
SIEM emitter that sends events to configured destinations
Implementations§
Source§impl SiemEmitter
impl SiemEmitter
Sourcepub async fn from_config(config: SiemConfig) -> Result<Self, Error>
pub async fn from_config(config: SiemConfig) -> Result<Self, Error>
Create a new SIEM emitter from configuration
Sourcepub async fn emit(&self, event: SecurityEvent) -> Result<(), Error>
pub async fn emit(&self, event: SecurityEvent) -> Result<(), Error>
Emit a security event to all configured SIEM destinations
Sourcepub async fn health_status(&self) -> Vec<TransportHealth>
pub async fn health_status(&self) -> Vec<TransportHealth>
Get health status of all SIEM transports
Sourcepub async fn is_healthy(&self) -> bool
pub async fn is_healthy(&self) -> bool
Check if SIEM emitter is healthy (at least one transport is healthy)
Sourcepub async fn health_summary(&self) -> (usize, usize, usize)
pub async fn health_summary(&self) -> (usize, usize, usize)
Get overall health summary
Auto Trait Implementations§
impl Freeze for SiemEmitter
impl !RefUnwindSafe for SiemEmitter
impl Send for SiemEmitter
impl Sync for SiemEmitter
impl Unpin for SiemEmitter
impl UnsafeUnpin for SiemEmitter
impl !UnwindSafe for SiemEmitter
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