pub struct SlaConfig {
pub alpha: f64,
pub min_calibration: usize,
pub max_calibration: usize,
pub target_latency_ms: f64,
pub enable_logging: bool,
pub alert_cooldown: u64,
pub hysteresis: f64,
pub voi_sampling: Option<VoiConfig>,
}Expand description
Configuration for resize SLA monitoring.
Fields§
§alpha: f64Significance level alpha for conformal alerting. Lower alpha = more conservative (fewer false alarms). Default: 0.05.
min_calibration: usizeMinimum latency samples before activating SLA monitoring. Default: 20.
max_calibration: usizeMaximum latency samples to retain for calibration. Default: 200.
target_latency_ms: f64Target SLA latency in milliseconds. Used for reference/logging; conformal threshold is data-driven. Default: 100.0 (100ms).
enable_logging: boolEnable JSONL logging of SLA events. Default: true.
alert_cooldown: u64Alert cooldown: minimum events between consecutive alerts. Default: 10.
hysteresis: f64Hysteresis factor for alert boundary. Default: 1.1.
voi_sampling: Option<VoiConfig>Optional VOI sampling policy for latency measurements. When set, latency observations are sampled via VOI decisions.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SlaConfig
impl RefUnwindSafe for SlaConfig
impl Send for SlaConfig
impl Sync for SlaConfig
impl Unpin for SlaConfig
impl UnwindSafe for SlaConfig
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