Class: Google::Apis::MonitoringV3::WindowsBasedSli

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/monitoring_v3/classes.rb,
generated/google/apis/monitoring_v3/representations.rb,
generated/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WindowsBasedSli

Returns a new instance of WindowsBasedSli.



4164
4165
4166
# File 'generated/google/apis/monitoring_v3/classes.rb', line 4164

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#good_bad_metric_filterString

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

Returns:

  • (String)


4136
4137
4138
# File 'generated/google/apis/monitoring_v3/classes.rb', line 4136

def good_bad_metric_filter
  @good_bad_metric_filter
end

#good_total_ratio_thresholdGoogle::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



4142
4143
4144
# File 'generated/google/apis/monitoring_v3/classes.rb', line 4142

def good_total_ratio_threshold
  @good_total_ratio_threshold
end

#metric_mean_in_rangeGoogle::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



4149
4150
4151
# File 'generated/google/apis/monitoring_v3/classes.rb', line 4149

def metric_mean_in_range
  @metric_mean_in_range
end

#metric_sum_in_rangeGoogle::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



4156
4157
4158
# File 'generated/google/apis/monitoring_v3/classes.rb', line 4156

def metric_sum_in_range
  @metric_sum_in_range
end

#window_periodString

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

Returns:

  • (String)


4162
4163
4164
# File 'generated/google/apis/monitoring_v3/classes.rb', line 4162

def window_period
  @window_period
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4169
4170
4171
4172
4173
4174
4175
# File 'generated/google/apis/monitoring_v3/classes.rb', line 4169

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