pub struct CorrelationResult {
pub rule_title: String,
pub rule_id: Option<String>,
pub level: Option<Level>,
pub tags: Vec<String>,
pub correlation_type: CorrelationType,
pub group_key: Vec<(String, String)>,
pub aggregated_value: f64,
pub timespan_secs: u64,
pub events: Option<Vec<Value>>,
pub event_refs: Option<Vec<EventRef>>,
}Expand description
The result of a correlation rule firing.
Fields§
§rule_title: StringTitle of the correlation rule.
rule_id: Option<String>ID of the correlation rule (if present).
level: Option<Level>Severity level.
Tags from the correlation rule.
correlation_type: CorrelationTypeType of correlation.
group_key: Vec<(String, String)>Group-by field names and their values for this match.
aggregated_value: f64The aggregated value that triggered the condition (count, sum, avg, etc.).
timespan_secs: u64The time window in seconds.
events: Option<Vec<Value>>Full event bodies, included when correlation_event_mode is Full.
Contains up to max_correlation_events recently stored window events.
Events are decompressed from deflate storage on output.
event_refs: Option<Vec<EventRef>>Lightweight event references, included when correlation_event_mode is Refs.
Contains up to max_correlation_events timestamp + optional ID pairs.
Trait Implementations§
Source§impl Clone for CorrelationResult
impl Clone for CorrelationResult
Source§fn clone(&self) -> CorrelationResult
fn clone(&self) -> CorrelationResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CorrelationResult
impl Debug for CorrelationResult
Auto Trait Implementations§
impl Freeze for CorrelationResult
impl RefUnwindSafe for CorrelationResult
impl Send for CorrelationResult
impl Sync for CorrelationResult
impl Unpin for CorrelationResult
impl UnsafeUnpin for CorrelationResult
impl UnwindSafe for CorrelationResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more