pub struct WindowsBasedSli {
pub good_bad_metric_filter: Option<String>,
pub good_total_ratio_threshold: Option<PerformanceThreshold>,
pub metric_mean_in_range: Option<MetricRange>,
pub metric_sum_in_range: Option<MetricRange>,
pub window_period: Option<Duration>,
}
Expand description
A WindowsBasedSli defines good_service as the count of time windows for which the provided service was of good quality. Criteria for determining if service was good are embedded in the window_criterion.
This type is not used in any activity, and only used as part of another schema.
Fields§
§good_bad_metric_filter: Option<String>
A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries with ValueType = BOOL. The window is good if any true values appear in the window.
good_total_ratio_threshold: Option<PerformanceThreshold>
A window is good if its performance is high enough.
metric_mean_in_range: Option<MetricRange>
A window is good if the metric’s value is in a good range, averaged across returned streams.
metric_sum_in_range: Option<MetricRange>
A window is good if the metric’s value is in a good range, summed across returned streams.
window_period: Option<Duration>
Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.
Trait Implementations§
Source§impl Clone for WindowsBasedSli
impl Clone for WindowsBasedSli
Source§fn clone(&self) -> WindowsBasedSli
fn clone(&self) -> WindowsBasedSli
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WindowsBasedSli
impl Debug for WindowsBasedSli
Source§impl Default for WindowsBasedSli
impl Default for WindowsBasedSli
Source§fn default() -> WindowsBasedSli
fn default() -> WindowsBasedSli
Source§impl<'de> Deserialize<'de> for WindowsBasedSli
impl<'de> Deserialize<'de> for WindowsBasedSli
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 WindowsBasedSli
impl Serialize for WindowsBasedSli
impl Part for WindowsBasedSli
Auto Trait Implementations§
impl Freeze for WindowsBasedSli
impl RefUnwindSafe for WindowsBasedSli
impl Send for WindowsBasedSli
impl Sync for WindowsBasedSli
impl Unpin for WindowsBasedSli
impl UnwindSafe for WindowsBasedSli
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