class 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.

Attributes

range[RW]

Range of numerical values within min and max. Corresponds to the JSON property `range` @return [Google::Apis::MonitoringV3::GoogleMonitoringV3Range]

time_series[RW]

A monitoring filter (cloud.google.com/monitoring/api/v3/filters) specifying the TimeSeries to use for evaluating window quality. Corresponds to the JSON property `timeSeries` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/monitoring_v3/classes.rb, line 2730
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/monitoring_v3/classes.rb, line 2735
def update!(**args)
  @range = args[:range] if args.key?(:range)
  @time_series = args[:time_series] if args.key?(:time_series)
end