pub struct SlaLogEntry {
pub event_idx: u64,
pub event_type: &'static str,
pub latency_ms: f64,
pub target_latency_ms: f64,
pub threshold_ms: f64,
pub e_value: f64,
pub is_alert: bool,
pub alert_reason: Option<String>,
pub applied_size: (u16, u16),
pub forced: bool,
}Expand description
SLA event log entry for JSONL output.
Fields§
§event_idx: u64Event index.
event_type: &'static strEvent type: “calibrate”, “observe”, “alert”, “stats”.
latency_ms: f64Latency in milliseconds.
target_latency_ms: f64Target SLA latency.
threshold_ms: f64Current conformal threshold.
e_value: f64E-value from conformal alerter.
is_alert: boolWhether alert was triggered.
alert_reason: Option<String>Alert reason (if any).
applied_size: (u16, u16)Applied size.
forced: boolForced apply flag.
Trait Implementations§
Source§impl Clone for SlaLogEntry
impl Clone for SlaLogEntry
Source§fn clone(&self) -> SlaLogEntry
fn clone(&self) -> SlaLogEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SlaLogEntry
impl RefUnwindSafe for SlaLogEntry
impl Send for SlaLogEntry
impl Sync for SlaLogEntry
impl Unpin for SlaLogEntry
impl UnwindSafe for SlaLogEntry
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