pub struct RuleHeader {
pub rule_title: String,
pub rule_id: Option<String>,
pub tenant_id: Option<TenantId>,
pub level: Option<Level>,
pub tags: Vec<String>,
pub custom_attributes: Arc<HashMap<String, Value>>,
pub enrichments: Option<Map<String, Value>>,
pub ruleset: Option<Arc<str>>,
}Expand description
Fields shared between detection and correlation results.
The optional enrichments map is None for results emitted directly
by the engine; downstream middleware can populate it with arbitrary
JSON values to ride along with each result.
Fields§
§rule_title: StringTitle of the matched rule.
rule_id: Option<String>ID of the matched rule (if present).
tenant_id: Option<TenantId>Tenant that produced this result, when tenancy is enabled. None for
every result when it is off; skipped on serialize.
level: Option<Level>Severity level.
Tags from the matched rule.
custom_attributes: Arc<HashMap<String, Value>>Custom attributes from the rule (merged with pipeline overrides).
Wrapped in Arc so per-match cloning is a pointer bump.
enrichments: Option<Map<String, Value>>Optional map of arbitrary enrichment values, written by downstream
middleware. None for engine-emitted results; skipped on serialize.
ruleset: Option<Arc<str>>Named ruleset that produced this result, when several rulesets are
evaluated side by side. None for a single collection.