pub struct AlertResult {
pub rule_name: String,
pub fired: bool,
pub severity: EventSeverity,
pub message: String,
pub current_value: f64,
pub threshold: f64,
pub evaluated_at: DateTime<Utc>,
pub dedup_key: String,
}Expand description
Result of evaluating a single alert rule against the event stream.
Fields§
§rule_name: StringName of the rule that was evaluated.
fired: boolWhether the alert condition was met and not deduplicated.
severity: EventSeveritySeverity from the rule definition.
message: StringMessage from the rule definition.
current_value: f64The measured value from the event stream.
threshold: f64The threshold value from the rule condition.
evaluated_at: DateTime<Utc>When this evaluation occurred.
dedup_key: StringKey used for deduplication.
Trait Implementations§
Source§impl Clone for AlertResult
impl Clone for AlertResult
Source§fn clone(&self) -> AlertResult
fn clone(&self) -> AlertResult
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 AlertResult
impl Debug for AlertResult
Source§impl<'de> Deserialize<'de> for AlertResult
impl<'de> Deserialize<'de> for AlertResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AlertResult
impl RefUnwindSafe for AlertResult
impl Send for AlertResult
impl Sync for AlertResult
impl Unpin for AlertResult
impl UnsafeUnpin for AlertResult
impl UnwindSafe for AlertResult
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