Class: Google::Apis::MonitoringV3::GoogleMonitoringV3Range

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

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.

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) ⇒ GoogleMonitoringV3Range

Returns a new instance of GoogleMonitoringV3Range.



1344
1345
1346
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1344

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

Instance Attribute Details

#maxFloat

Range maximum. Corresponds to the JSON property max

Returns:

  • (Float)


1337
1338
1339
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1337

def max
  @max
end

#minFloat

Range minimum. Corresponds to the JSON property min

Returns:

  • (Float)


1342
1343
1344
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1342

def min
  @min
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1349
1350
1351
1352
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1349

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