pub struct Step {
pub threshold: f64,
pub penalty: f64,
}Expand description
One threshold/penalty pair used by HealthConfig.
When a metric value exceeds threshold, the configured penalty is
subtracted from the running health score. Thresholds inside a &[Step]
slice must be supplied in descending order — the first match wins.
Fields§
§threshold: f64Inclusive lower bound that must be exceeded for the penalty to apply.
penalty: f64Amount subtracted from the running health score (0..=100) on match.
Implementations§
Trait Implementations§
impl Copy for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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