class Google::Apis::MonitoringV3::WindowsBasedSli
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.
Attributes
A monitoring filter (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. Corresponds to the JSON property `goodBadMetricFilter` @return [String]
A PerformanceThreshold
is used when each window is good when that window has a sufficiently high performance. Corresponds to the JSON property `goodTotalRatioThreshold` @return [Google::Apis::MonitoringV3::PerformanceThreshold]
A MetricRange
is used when each window is good when the value x of a single TimeSeries
satisfies range.min <= x <= range.max. The provided TimeSeries
must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE. Corresponds to the JSON property `metricMeanInRange` @return [Google::Apis::MonitoringV3::MetricRange]
A MetricRange
is used when each window is good when the value x of a single TimeSeries
satisfies range.min <= x <= range.max. The provided TimeSeries
must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE. Corresponds to the JSON property `metricSumInRange` @return [Google::Apis::MonitoringV3::MetricRange]
Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s. Corresponds to the JSON property `windowPeriod` @return [String]
Public Class Methods
# File lib/google/apis/monitoring_v3/classes.rb, line 4380 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/monitoring_v3/classes.rb, line 4385 def update!(**args) @good_bad_metric_filter = args[:good_bad_metric_filter] if args.key?(:good_bad_metric_filter) @good_total_ratio_threshold = args[:good_total_ratio_threshold] if args.key?(:good_total_ratio_threshold) @metric_mean_in_range = args[:metric_mean_in_range] if args.key?(:metric_mean_in_range) @metric_sum_in_range = args[:metric_sum_in_range] if args.key?(:metric_sum_in_range) @window_period = args[:window_period] if args.key?(:window_period) end