pub struct MetricSlo {
pub metric_type: MetricType,
pub max_value: Option<f64>,
pub max_ratio: Option<f64>,
pub safe_mode_trigger: bool,
}Expand description
Per-metric SLO definition.
Fields§
§metric_type: MetricTypeWhat kind of metric this is.
max_value: Option<f64>Maximum absolute value allowed (breach if exceeded).
max_ratio: Option<f64>Maximum ratio vs baseline before breach.
safe_mode_trigger: boolIf true, breaching this metric triggers safe-mode immediately.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetricSlo
impl RefUnwindSafe for MetricSlo
impl Send for MetricSlo
impl Sync for MetricSlo
impl Unpin for MetricSlo
impl UnsafeUnpin for MetricSlo
impl UnwindSafe for MetricSlo
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