pub enum WindowMode {
Sliding,
Tumbling,
Session,
}Expand description
Window semantics for a correlation rule’s timespan.
Controls how timespan is anchored to the event stream. Sliding is the
default and matches the behavior the Sigma correlation specification already
prefers (a trailing per-event window), so omitting window never changes the
meaning of an existing rule.
Sliding: trailing window(t - timespan, t]evaluated per event.Tumbling: fixed, boundary-aligned, non-overlapping buckets of sizetimespan.Session: dynamic window that extends while consecutive in-group events stay withingap, capped bytimespanas the maximum total span.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for WindowMode
impl Clone for WindowMode
Source§fn clone(&self) -> WindowMode
fn clone(&self) -> WindowMode
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 moreimpl Copy for WindowMode
Source§impl Debug for WindowMode
impl Debug for WindowMode
Source§impl Default for WindowMode
impl Default for WindowMode
Source§fn default() -> WindowMode
fn default() -> WindowMode
Returns the “default value” for a type. Read more
impl Eq for WindowMode
Source§impl FromStr for WindowMode
impl FromStr for WindowMode
Source§impl PartialEq for WindowMode
impl PartialEq for WindowMode
Source§fn eq(&self, other: &WindowMode) -> bool
fn eq(&self, other: &WindowMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WindowMode
impl Serialize for WindowMode
impl StructuralPartialEq for WindowMode
Auto Trait Implementations§
impl Freeze for WindowMode
impl RefUnwindSafe for WindowMode
impl Send for WindowMode
impl Sync for WindowMode
impl Unpin for WindowMode
impl UnsafeUnpin for WindowMode
impl UnwindSafe for WindowMode
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.