pub struct SlaReport {
pub p50_ms: f64,
pub p95_ms: f64,
pub p99_ms: f64,
pub error_rate: f64,
pub total_count: usize,
pub slo_target: f64,
pub error_budget_remaining: f64,
pub saturation: f64,
}Expand description
SLA monitoring report snapshot, generated by SlaMonitor::report.
Fields§
§p50_ms: f64P50 latency (milliseconds).
p95_ms: f64P95 latency (milliseconds).
p99_ms: f64P99 latency (milliseconds).
error_rate: f64Error rate, in the range [0.0, 1.0].
total_count: usizeTotal number of observations.
slo_target: f64SLO target success rate (e.g., 0.999).
error_budget_remaining: f64Remaining error budget, in the range [0.0, 1.0]; 1.0 means the budget is intact.
saturation: f64Saturation, in the range [0.0, 1.0]; 1.0 means the error budget is exhausted.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlaReport
impl<'de> Deserialize<'de> for SlaReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for SlaReport
Auto Trait Implementations§
impl Freeze for SlaReport
impl RefUnwindSafe for SlaReport
impl Send for SlaReport
impl Sync for SlaReport
impl Unpin for SlaReport
impl UnsafeUnpin for SlaReport
impl UnwindSafe for SlaReport
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