Skip to main content

GroupStateInfo

Struct GroupStateInfo 

Source
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: String

A 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: String

The threshold predicates rendered for display.

§met: bool

Whether the threshold condition is currently satisfied.

§entries: usize

Number 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: WindowState

The raw window state (timestamps / values), serialized as-is.

Trait Implementations§

Source§

impl Clone for GroupStateInfo

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for GroupStateInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for GroupStateInfo

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.