Class: Google::Apis::MonitoringV3::MetricRange
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::MetricRange
- 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 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
-
#range ⇒ Google::Apis::MonitoringV3::GoogleMonitoringV3Range
Range of numerical values, inclusive of min and exclusive of max.
-
#time_series ⇒ String
A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying the TimeSeries to use for evaluating window quality.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MetricRange
constructor
A new instance of MetricRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MetricRange
Returns a new instance of MetricRange.
2408 2409 2410 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2408 def initialize(**args) update!(**args) end |
Instance Attribute Details
#range ⇒ Google::Apis::MonitoringV3::GoogleMonitoringV3Range
Range of numerical values, inclusive of min and exclusive of max. If the open
range "< range.max" is desired, set range.min = -infinity. If the open range ">
= range.min" is desired, set range.max = infinity.
Corresponds to the JSON property range
2400 2401 2402 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2400 def range @range end |
#time_series ⇒ String
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
2406 2407 2408 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2406 def time_series @time_series end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2413 2414 2415 2416 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2413 def update!(**args) @range = args[:range] if args.key?(:range) @time_series = args[:time_series] if args.key?(:time_series) end |