Struct usiem_enricher::LogEnricher
source · [−]pub struct LogEnricher { /* private fields */ }
Implementations
sourceimpl LogEnricher
impl LogEnricher
pub fn new() -> Self
pub fn add_enricher(&mut self, enricher: Box<dyn LogEnrichment>)
Trait Implementations
sourceimpl SiemComponent for LogEnricher
impl SiemComponent for LogEnricher
fn set_id(&mut self, id: u64)
sourcefn local_channel(&self) -> Sender<SiemMessage>
fn local_channel(&self) -> Sender<SiemMessage>
Get the channel to this component
sourcefn set_log_channel(
&mut self,
sender: Sender<SiemLog>,
receiver: Receiver<SiemLog>
)
fn set_log_channel(
&mut self,
sender: Sender<SiemLog>,
receiver: Receiver<SiemLog>
)
Sets the channel of this component. It’s the kernel who sets the channel
sourcefn set_kernel_sender(&mut self, sender: Sender<SiemMessage>)
fn set_kernel_sender(&mut self, sender: Sender<SiemMessage>)
Sets the channel to communicate with the kernel.
sourcefn run(&mut self)
fn run(&mut self)
Execute the logic of this component in an infinite loop. Must be stopped using Commands sent using the channel.
sourcefn set_storage(&mut self, _conn: Box<dyn SiemComponentStateStorage>)
fn set_storage(&mut self, _conn: Box<dyn SiemComponentStateStorage>)
Allow to store information about this component like the state or conigurations.
sourcefn capabilities(&self) -> SiemComponentCapabilities
fn capabilities(&self) -> SiemComponentCapabilities
Capabilities and actions that can be performed by this component
sourcefn duplicate(&self) -> Box<dyn SiemComponent>
fn duplicate(&self) -> Box<dyn SiemComponent>
Allows the Kernel to duplicate this component
sourcefn set_datasets(&mut self, datasets: Vec<SiemDataset>)
fn set_datasets(&mut self, datasets: Vec<SiemDataset>)
Initialize the component with the datasets before executing run
fn id(&self) -> u64
fn name(&self) -> &str
Auto Trait Implementations
impl !RefUnwindSafe for LogEnricher
impl Send for LogEnricher
impl !Sync for LogEnricher
impl Unpin for LogEnricher
impl !UnwindSafe for LogEnricher
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more