pub struct Threshold {
pub metric: String,
pub budget: f64,
pub tolerance_pct: f64,
}Expand description
A single performance threshold for gating.
Fields§
§metric: StringMetric name (must match a Measurement name).
budget: f64Budget value (upper bound for the metric).
tolerance_pct: f64Tolerance as a percentage (0.0–100.0). A measurement is allowed to
exceed budget by up to budget * tolerance_pct / 100.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Threshold
impl RefUnwindSafe for Threshold
impl Send for Threshold
impl Sync for Threshold
impl Unpin for Threshold
impl UnsafeUnpin for Threshold
impl UnwindSafe for Threshold
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