pub struct SliSpec {
pub events: Option<EventsSli>,
pub raw: Option<RawSli>,
pub latency: Option<LatencySli>,
}Available on crate feature
spec only.Expand description
The SLI definition: exactly one of events, raw, or latency.
Fields§
§events: Option<EventsSli>Events-based SLI (bad events over total events).
raw: Option<RawSli>Raw error-ratio SLI.
latency: Option<LatencySli>Latency SLI generated from a Prometheus histogram (slokit extension).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SliSpec
impl<'de> Deserialize<'de> for SliSpec
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 SliSpec
Auto Trait Implementations§
impl Freeze for SliSpec
impl RefUnwindSafe for SliSpec
impl Send for SliSpec
impl Sync for SliSpec
impl Unpin for SliSpec
impl UnsafeUnpin for SliSpec
impl UnwindSafe for SliSpec
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