#[non_exhaustive]pub struct TimeSeriesRatio {
pub good_service_filter: String,
pub bad_service_filter: String,
pub total_service_filter: String,
}Expand description
A TimeSeriesRatio specifies two TimeSeries to use for computing the
good_service / total_service ratio. The specified TimeSeries must have
ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify
exactly two of good, bad, and total, and the relationship good_service + bad_service = total_service will be assumed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.good_service_filter: StringA monitoring filter
specifying a TimeSeries quantifying good service provided. Must have
ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
bad_service_filter: StringA monitoring filter
specifying a TimeSeries quantifying bad service, either demanded service
that was not provided or demanded service that was of inadequate quality.
Must have ValueType = DOUBLE or ValueType = INT64 and must have
MetricKind = DELTA or MetricKind = CUMULATIVE.
total_service_filter: StringA monitoring filter
specifying a TimeSeries quantifying total demanded service. Must have
ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
Implementations§
Source§impl TimeSeriesRatio
impl TimeSeriesRatio
Sourcepub fn set_good_service_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_good_service_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of good_service_filter.
Sourcepub fn set_bad_service_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_bad_service_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of bad_service_filter.
Sourcepub fn set_total_service_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_total_service_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of total_service_filter.
Trait Implementations§
Source§impl Clone for TimeSeriesRatio
impl Clone for TimeSeriesRatio
Source§fn clone(&self) -> TimeSeriesRatio
fn clone(&self) -> TimeSeriesRatio
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more