pub struct SiemRule {
    pub name: &'static str,
    pub service: &'static str,
    pub description: &'static str,
    pub templates: &'static BTreeMap<&'static str, &'static str>,
    pub tenants: &'static BTreeMap<&'static str, &'static str>,
    pub mitre: (&'static Vec<MitreTactics>, &'static Vec<MitreTechniques>),
    pub datasets: BTreeMap<SiemDatasetType, SiemDataset>,
    pub needed_datasets: &'static Vec<SiemDatasetType>,
    pub rule: SiemRuleMatchSync,
}

Fields

name: &'static str

Name of the rule

service: &'static str

Name of the Service applied to match this rule

description: &'static str

A description of the rule to be showed in the UI

templates: &'static BTreeMap<&'static str, &'static str>

Includes templateS for this rule. used to generate the alert description

tenants: &'static BTreeMap<&'static str, &'static str>

Sets the mapping of languages to be used in each tenant

mitre: (&'static Vec<MitreTactics>, &'static Vec<MitreTechniques>)

tactics and techniques covered by this rule

datasets: BTreeMap<SiemDatasetType, SiemDataset>

Datasets to be used by the rules

needed_datasets: &'static Vec<SiemDatasetType>

List of datasets needed by this rule

rule: SiemRuleMatchSync

Checks if the log matches this rule. It can return an alert and/or an action to be executed by the SOAR

Implementations

Updates the references for the datasets

To be used by the SiemRuleMatch

To be used by the SiemRuleMatch

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.