Class: Google::Apis::MonitoringV3::MetricRange

Inherits:
Object
  • Object
show all
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 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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MetricRange

Returns a new instance of MetricRange.



3111
3112
3113
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3111

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

Instance Attribute Details

#rangeGoogle::Apis::MonitoringV3::GoogleMonitoringV3Range

Range of numerical values within min and max. Corresponds to the JSON property range



3103
3104
3105
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3103

def range
  @range
end

#time_seriesString

A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying the TimeSeries to use for evaluating window quality. Corresponds to the JSON property timeSeries

Returns:

  • (String)


3109
3110
3111
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3109

def time_series
  @time_series
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3116
3117
3118
3119
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3116

def update!(**args)
  @range = args[:range] if args.key?(:range)
  @time_series = args[:time_series] if args.key?(:time_series)
end