pub struct TriggeredAlert {
pub metric_name: String,
pub current_value: f64,
pub threshold_value: f64,
pub condition: AlertCondition,
pub severity: AlertSeverity,
pub description: String,
}Expand description
Alert that has been triggered
Fields§
§metric_name: StringName of the metric that triggered
current_value: f64Current value of the metric
threshold_value: f64Threshold value that was exceeded
condition: AlertConditionThe condition that was met
severity: AlertSeveritySeverity of the alert
description: StringHuman-readable description
Trait Implementations§
Source§impl Clone for TriggeredAlert
impl Clone for TriggeredAlert
Source§fn clone(&self) -> TriggeredAlert
fn clone(&self) -> TriggeredAlert
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TriggeredAlert
impl RefUnwindSafe for TriggeredAlert
impl Send for TriggeredAlert
impl Sync for TriggeredAlert
impl Unpin for TriggeredAlert
impl UnwindSafe for TriggeredAlert
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more