pub struct ServiceLevelIndicator {
pub basic_sli: Option<BasicSli>,
pub request_based: Option<RequestBasedSli>,
pub windows_based: Option<WindowsBasedSli>,
}
Expand description
A Service-Level Indicator (SLI) describes the “performance” of a service. For some services, the SLI is well-defined. In such cases, the SLI can be described easily by referencing the well-known SLI and providing the needed parameters. Alternatively, a “custom” SLI can be defined with a query to the underlying metric store. An SLI is defined to be good_service / total_service over any queried time interval. The value of performance always falls into the range 0 <= performance <= 1. A custom SLI describes how to compute this ratio, whether this is by dividing values from a pair of time series, cutting a Distribution into good and bad counts, or counting time windows in which the service complies with a criterion. For separation of concerns, a single Service-Level Indicator measures performance for only one aspect of service quality, such as fraction of successful queries or fast-enough queries.
This type is not used in any activity, and only used as part of another schema.
Fields§
§basic_sli: Option<BasicSli>
Basic SLI on a well-known service type.
request_based: Option<RequestBasedSli>
Request-based SLIs
windows_based: Option<WindowsBasedSli>
Windows-based SLIs
Trait Implementations§
Source§impl Clone for ServiceLevelIndicator
impl Clone for ServiceLevelIndicator
Source§fn clone(&self) -> ServiceLevelIndicator
fn clone(&self) -> ServiceLevelIndicator
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ServiceLevelIndicator
impl Debug for ServiceLevelIndicator
Source§impl Default for ServiceLevelIndicator
impl Default for ServiceLevelIndicator
Source§fn default() -> ServiceLevelIndicator
fn default() -> ServiceLevelIndicator
Source§impl<'de> Deserialize<'de> for ServiceLevelIndicator
impl<'de> Deserialize<'de> for ServiceLevelIndicator
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>,
Source§impl Serialize for ServiceLevelIndicator
impl Serialize for ServiceLevelIndicator
impl Part for ServiceLevelIndicator
Auto Trait Implementations§
impl Freeze for ServiceLevelIndicator
impl RefUnwindSafe for ServiceLevelIndicator
impl Send for ServiceLevelIndicator
impl Sync for ServiceLevelIndicator
impl Unpin for ServiceLevelIndicator
impl UnwindSafe for ServiceLevelIndicator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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