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<SlaReport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SlaReport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SlaReport
impl Serialize for SlaReport
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more