pub struct AlarmDef {
pub priority: u8,
pub respond_minutes: u16,
pub on_delay_secs: u32,
pub off_delay_secs: u32,
pub threshold: Option<Decimal>,
pub title: Texts,
pub cause: Texts,
pub consequence: Texts,
pub action: Texts,
}Expand description
One alarm type, as rationalised: what it means, what to do, how fast, and when it fires.
Fields§
§priority: u81 high, 2 medium, 3 low.
respond_minutes: u16Time to respond, minutes.
on_delay_secs: u32The condition must last this long before the alarm is raised.
off_delay_secs: u32The condition must be absent this long before the alarm clears.
threshold: Option<Decimal>A share in (0, 1], for alarms on a ratio (pool availability).
title: TextsTitle; {subject} is replaced by the connection, asset or pool.
cause: TextsLikely cause.
consequence: TextsConsequence if nobody acts.
action: TextsWhat the operator does.
Trait Implementations§
impl Eq for AlarmDef
impl StructuralPartialEq for AlarmDef
Auto Trait Implementations§
impl Forget for AlarmDef
impl Freeze for AlarmDef
impl Move for AlarmDef
impl RefUnwindSafe for AlarmDef
impl Send for AlarmDefwhere
RawVecInner: Send,
impl Sync for AlarmDefwhere
RawVecInner: Sync,
impl Unpin for AlarmDef
impl UnsafeUnpin for AlarmDef
impl UnwindSafe for AlarmDefwhere
RawVecInner: UnwindSafe,
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