pub struct GroupKey(pub Vec<Option<String>>);Expand description
Composite key for group-by partitioning.
Each element corresponds to a GroupByField value extracted from an event.
None means the field was absent from the event.
Tuple Fields§
§0: Vec<Option<String>>Implementations§
Source§impl GroupKey
impl GroupKey
Sourcepub fn extract(
event: &Event<'_>,
group_by: &[GroupByField],
rule_refs: &[&str],
) -> Self
pub fn extract( event: &Event<'_>, group_by: &[GroupByField], rule_refs: &[&str], ) -> Self
Extract a group key from an event given the group-by fields and the rule reference identifiers (ID, name, etc.) that produced the detection match.
Sourcepub fn from_pairs(pairs: &[(String, String)], group_by: &[GroupByField]) -> Self
pub fn from_pairs(pairs: &[(String, String)], group_by: &[GroupByField]) -> Self
Build a group key from explicit field-value pairs (for chaining).
Trait Implementations§
impl Eq for GroupKey
impl StructuralPartialEq for GroupKey
Auto Trait Implementations§
impl Freeze for GroupKey
impl RefUnwindSafe for GroupKey
impl Send for GroupKey
impl Sync for GroupKey
impl Unpin for GroupKey
impl UnsafeUnpin for GroupKey
impl UnwindSafe for GroupKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.