pub struct GroupStateInfo {Show 19 fields
pub correlation_index: usize,
pub correlation_id: Option<String>,
pub correlation_name: Option<String>,
pub correlation_title: String,
pub correlation_type: CorrelationType,
pub group_key: Vec<GroupKeyPart>,
pub group_key_display: String,
pub got: Option<f64>,
pub threshold: String,
pub met: bool,
pub entries: usize,
pub earliest: Option<i64>,
pub latest: Option<i64>,
pub timespan_secs: u64,
pub seconds_to_eviction: Option<i64>,
pub last_alert: Option<i64>,
pub suppress_secs: Option<u64>,
pub suppression_remaining: Option<i64>,
pub window: WindowState,
}Expand description
Live state of one (correlation, group_key) window.
Fields§
§correlation_index: usize§correlation_id: Option<String>§correlation_name: Option<String>§correlation_title: String§correlation_type: CorrelationType§group_key: Vec<GroupKeyPart>The resolved group key, field by field.
group_key_display: StringA flat field=value rendering of the group key for display and
substring filtering.
got: Option<f64>The current aggregate (count / sum / avg / distinct / fired-rule count).
threshold: StringThe threshold predicates rendered for display.
met: boolWhether the threshold condition is currently satisfied.
entries: usizeNumber of retained entries in the window.
earliest: Option<i64>§latest: Option<i64>§timespan_secs: u64§seconds_to_eviction: Option<i64>Seconds until the oldest entry leaves the window, relative to the
latest observed event time (earliest + timespan - latest, clamped at
zero).
last_alert: Option<i64>§suppress_secs: Option<u64>§suppression_remaining: Option<i64>Seconds remaining in the suppression window after the last alert, relative to the latest observed event time.
window: WindowStateThe raw window state (timestamps / values), serialized as-is.
Trait Implementations§
Source§impl Clone for GroupStateInfo
impl Clone for GroupStateInfo
Source§fn clone(&self) -> GroupStateInfo
fn clone(&self) -> GroupStateInfo
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 GroupStateInfo
impl Debug for GroupStateInfo
Auto Trait Implementations§
impl Freeze for GroupStateInfo
impl RefUnwindSafe for GroupStateInfo
impl Send for GroupStateInfo
impl Sync for GroupStateInfo
impl Unpin for GroupStateInfo
impl UnsafeUnpin for GroupStateInfo
impl UnwindSafe for GroupStateInfo
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