Trait log_analyzer::stores::processing_store::ProcessingStore
source · [−]pub trait ProcessingStore {
fn add_format(&self, id: String, format: String);
fn get_format(&self, id: &str) -> Option<String>;
fn get_formats(&self) -> Vec<Format>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator, ;
fn add_filter(
&self,
id: String,
filter: LogLine,
action: FilterAction,
enabled: bool
);
fn get_filters(&self) -> Vec<(bool, Filter)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator, ;
fn toggle_filter(&self, id: &str);
}Expand description
Store holding all the processing information. Format and filter definitions
Required Methods
fn add_format(&self, id: String, format: String)
fn add_format(&self, id: String, format: String)
Add a new format to the store
id: aliasformat: regex formatting
fn get_format(&self, id: &str) -> Option<String>
fn get_format(&self, id: &str) -> Option<String>
Get the format data for the requested format alias
Get a list of formats
fn add_filter(
&self,
id: String,
filter: LogLine,
action: FilterAction,
enabled: bool
)
fn add_filter(
&self,
id: String,
filter: LogLine,
action: FilterAction,
enabled: bool
)
Add a new filter to the store
id: aliasfilter: log line regex definitions
Get a list of filters together with their enabled state
fn toggle_filter(&self, id: &str)
fn toggle_filter(&self, id: &str)
Switch the enabled state for the given filter