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.
5537 5538 5539 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5537 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
5509 5510 5511 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5509 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
5515 5516 5517 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5515 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
5522 5523 5524 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5522 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
5529 5530 5531 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5529 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
5535 5536 5537 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5535 def window_period @window_period end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5542 5543 5544 5545 5546 5547 5548 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5542 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 |