pub struct ActiveAlert {
pub event: AlertEvent,
pub first_fired: DateTime<Utc>,
pub last_updated: DateTime<Utc>,
pub fire_count: u32,
pub escalation_level: usize,
pub channels_notified: Vec<String>,
}Expand description
Active alert tracking
Fields§
§event: AlertEventOriginal alert event
first_fired: DateTime<Utc>First firing time
last_updated: DateTime<Utc>Last update time
fire_count: u32Fire count
escalation_level: usizeEscalation level
channels_notified: Vec<String>Channels notified
Trait Implementations§
Source§impl Clone for ActiveAlert
impl Clone for ActiveAlert
Source§fn clone(&self) -> ActiveAlert
fn clone(&self) -> ActiveAlert
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 ActiveAlert
impl RefUnwindSafe for ActiveAlert
impl Send for ActiveAlert
impl Sync for ActiveAlert
impl Unpin for ActiveAlert
impl UnwindSafe for ActiveAlert
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> 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