Class: Google::Apis::MonitoringV3::WindowsBasedSli
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::WindowsBasedSli
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#good_bad_metric_filter ⇒ String
A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries with ValueType = BOOL.
-
#good_total_ratio_threshold ⇒ Google::Apis::MonitoringV3::PerformanceThreshold
A PerformanceThreshold is used when each window is good when that window has a sufficiently high performance.
-
#metric_mean_in_range ⇒ 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.
-
#metric_sum_in_range ⇒ 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.
-
#window_period ⇒ String
Duration over which window quality is evaluated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WindowsBasedSli
constructor
A new instance of WindowsBasedSli.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WindowsBasedSli
Returns a new instance of WindowsBasedSli.
5293 5294 5295 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5293 def initialize(**args) update!(**args) end |
Instance Attribute Details
#good_bad_metric_filter ⇒ 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.
Corresponds to the JSON property goodBadMetricFilter
5265 5266 5267 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5265 def good_bad_metric_filter @good_bad_metric_filter end |
#good_total_ratio_threshold ⇒ Google::Apis::MonitoringV3::PerformanceThreshold
A PerformanceThreshold is used when each window is good when that window has a
sufficiently high performance.
Corresponds to the JSON property goodTotalRatioThreshold
5271 5272 5273 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5271 def good_total_ratio_threshold @good_total_ratio_threshold end |
#metric_mean_in_range ⇒ 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 metricMeanInRange
5278 5279 5280 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5278 def metric_mean_in_range @metric_mean_in_range end |
#metric_sum_in_range ⇒ 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
5285 5286 5287 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5285 def metric_sum_in_range @metric_sum_in_range end |
#window_period ⇒ String
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
5291 5292 5293 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5291 def window_period @window_period end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5298 5299 5300 5301 5302 5303 5304 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5298 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 |