pub struct SloSchema {
pub regression_threshold: f64,
pub noise_tolerance: f64,
pub metrics: HashMap<String, MetricSlo>,
pub safe_mode_breach_count: usize,
pub safe_mode_error_rate: f64,
}Expand description
Validated SLO configuration parsed from slo.yaml.
Fields§
§regression_threshold: f64Global regression threshold as fraction (e.g., 0.10 = 10%).
noise_tolerance: f64Global noise tolerance as fraction.
metrics: HashMap<String, MetricSlo>Per-metric SLO definitions.
safe_mode_breach_count: usizeNumber of simultaneous breaches that triggers safe-mode.
safe_mode_error_rate: f64Error rate above which safe-mode is triggered regardless.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SloSchema
impl RefUnwindSafe for SloSchema
impl Send for SloSchema
impl Sync for SloSchema
impl Unpin for SloSchema
impl UnsafeUnpin for SloSchema
impl UnwindSafe for SloSchema
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