pub struct CorrelationBody {
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
Correlation-specific result fields.
Fields§
§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, …).
timespan_secs: u64The time window in seconds.
events: Option<Vec<Value>>Full event bodies, included when correlation_event_mode is Full.
event_refs: Option<Vec<EventRef>>Lightweight event references, included when correlation_event_mode is Refs.
Trait Implementations§
Source§impl Clone for CorrelationBody
impl Clone for CorrelationBody
Source§fn clone(&self) -> CorrelationBody
fn clone(&self) -> CorrelationBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CorrelationBody
impl Debug for CorrelationBody
Auto Trait Implementations§
impl Freeze for CorrelationBody
impl RefUnwindSafe for CorrelationBody
impl Send for CorrelationBody
impl Sync for CorrelationBody
impl Unpin for CorrelationBody
impl UnsafeUnpin for CorrelationBody
impl UnwindSafe for CorrelationBody
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