pub trait ProcessingStore {
// Required methods
fn add_format(&self, id: String, format: String);
fn get_format(&self, id: &str) -> Option<String>;
fn get_formats(&self) -> Vec<Format>;
fn add_filter(
&self,
id: String,
filter: LogLine,
action: FilterAction,
enabled: bool,
);
fn get_filters(&self) -> Vec<(bool, Filter)>;
fn toggle_filter(&self, id: &str);
}Expand description
Store holding all the processing information. Format and filter definitions
Required Methods§
Sourcefn 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
Sourcefn get_format(&self, id: &str) -> Option<String>
fn get_format(&self, id: &str) -> Option<String>
Get the format data for the requested format alias
Sourcefn get_formats(&self) -> Vec<Format>
fn get_formats(&self) -> Vec<Format>
Get a list of formats
Sourcefn 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
Sourcefn get_filters(&self) -> Vec<(bool, Filter)>
fn get_filters(&self) -> Vec<(bool, Filter)>
Get a list of filters together with their enabled state
Sourcefn toggle_filter(&self, id: &str)
fn toggle_filter(&self, id: &str)
Switch the enabled state for the given filter