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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ WindowsBasedSli

Returns a new instance of WindowsBasedSli.



3831
3832
3833
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3831

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)


3803
3804
3805
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3803

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



3809
3810
3811
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3809

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



3816
3817
3818
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3816

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



3823
3824
3825
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3823

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)


3829
3830
3831
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3829

def window_period
  @window_period
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3836
3837
3838
3839
3840
3841
3842
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3836

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