pub struct Thresholds {
pub alert_silence_hours: i32,
pub alert_overwork_factor: Decimal,
pub alert_open_day_hours: i32,
}Expand description
The thresholds this installation speaks at.
Settings, unlike the signal thresholds, which ADR 0016 deliberately fixed in code. The distinction is who is interrupted. A signal is read by whoever opened the page, and a sensitivity slider there is a knob on an opinion. An alert interrupts somebody, and how much silence is worth interrupting over genuinely differs between a team in one timezone and a team across four.
What is not configurable is the set of rules - that stays a choice, not an operator’s to invent.
Fields§
§alert_silence_hours: i32Hours of silence from every one of a person’s agents before it is an alert.
alert_overwork_factor: DecimalHow far past their own norm a finished day has to run, as a share of that norm. A share rather than a number of hours, so it means the same thing for somebody on half time.
alert_open_day_hours: i32Hours a day may stay open before the server says so.
Implementations§
Trait Implementations§
Source§impl Clone for Thresholds
impl Clone for Thresholds
impl Copy for Thresholds
Source§impl Debug for Thresholds
impl Debug for Thresholds
Source§impl<'de> Deserialize<'de> for Thresholds
impl<'de> Deserialize<'de> for Thresholds
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>,
Source§impl<'a, R: Row> FromRow<'a, R> for Thresholds
impl<'a, R: Row> FromRow<'a, R> for Thresholds
Auto Trait Implementations§
impl Freeze for Thresholds
impl RefUnwindSafe for Thresholds
impl Send for Thresholds
impl Sync for Thresholds
impl Unpin for Thresholds
impl UnsafeUnpin for Thresholds
impl UnwindSafe for Thresholds
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
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> ⓘ
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