pub struct ResizeSlaMonitor { /* private fields */ }Expand description
Resize SLA monitor with conformal alerting.
Tracks resize latency and alerts on SLA violations using distribution-free conformal prediction.
Implementations§
Source§impl ResizeSlaMonitor
impl ResizeSlaMonitor
Sourcepub fn on_decision(&self, entry: &DecisionLog) -> Option<AlertDecision>
pub fn on_decision(&self, entry: &DecisionLog) -> Option<AlertDecision>
Process a resize apply decision log and return alert decision.
Sourcepub fn last_alert(&self) -> Option<AlertDecision>
pub fn last_alert(&self) -> Option<AlertDecision>
Get the last alert (if any).
Sourcepub fn summary(&self) -> SlaSummary
pub fn summary(&self) -> SlaSummary
Get SLA summary statistics.
Sourcepub fn alerter_stats(&self) -> AlertStats
pub fn alerter_stats(&self) -> AlertStats
Get alerter stats directly.
Sourcepub fn logs(&self) -> Vec<SlaLogEntry>
pub fn logs(&self) -> Vec<SlaLogEntry>
Get SLA logs.
Sourcepub fn logs_to_jsonl(&self) -> String
pub fn logs_to_jsonl(&self) -> String
Convert logs to JSONL format.
Sourcepub fn clear_logs(&self)
pub fn clear_logs(&self)
Clear logs.
Sourcepub fn threshold_ms(&self) -> f64
pub fn threshold_ms(&self) -> f64
Current threshold in milliseconds.
Sourcepub fn calibration_count(&self) -> usize
pub fn calibration_count(&self) -> usize
Number of calibration samples collected.
Sourcepub fn sampling_summary(&self) -> Option<VoiSummary>
pub fn sampling_summary(&self) -> Option<VoiSummary>
Sampling summary if VOI sampling is enabled.
Sourcepub fn sampling_logs_to_jsonl(&self) -> Option<String>
pub fn sampling_logs_to_jsonl(&self) -> Option<String>
Sampling logs rendered as JSONL (if enabled).
Auto Trait Implementations§
impl !Freeze for ResizeSlaMonitor
impl !RefUnwindSafe for ResizeSlaMonitor
impl Send for ResizeSlaMonitor
impl !Sync for ResizeSlaMonitor
impl Unpin for ResizeSlaMonitor
impl UnwindSafe for ResizeSlaMonitor
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