pub struct MatchResult {
pub rule_title: String,
pub rule_id: Option<String>,
pub level: Option<Level>,
pub tags: Vec<String>,
pub matched_selections: Vec<String>,
pub matched_fields: Vec<FieldMatch>,
pub event: Option<Value>,
pub custom_attributes: Arc<HashMap<String, Value>>,
}Expand description
The result of a rule matching an event.
Contains the matched rule metadata plus details about which selections and fields triggered the match.
Fields§
§rule_title: StringTitle of the matched rule.
rule_id: Option<String>ID of the matched rule (if present).
level: Option<Level>Severity level.
Tags from the matched rule.
matched_selections: Vec<String>Which named detections (selections) matched.
matched_fields: Vec<FieldMatch>Specific field matches that triggered the detection.
event: Option<Value>The full event that triggered the match, included when the
rsigma.include_event custom attribute is set to "true".
custom_attributes: Arc<HashMap<String, Value>>Custom attributes carried from the original Sigma rule.
Contains the merged view of (a) arbitrary non-standard top-level keys,
(b) the explicit custom_attributes: block, and (c) anything added by
pipeline SetCustomAttribute transformations.
Wrapped in Arc so that per-match cloning is a pointer bump.
Trait Implementations§
Source§impl Clone for MatchResult
impl Clone for MatchResult
Source§fn clone(&self) -> MatchResult
fn clone(&self) -> MatchResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more