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

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

Range of numerical values within min and 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

Constructor Details

#initialize(**args) ⇒ GoogleMonitoringV3Range

Returns a new instance of GoogleMonitoringV3Range.



1384
1385
1386
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1384

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

Instance Attribute Details

#maxFloat

Range maximum. Corresponds to the JSON property max

Returns:

  • (Float)


1377
1378
1379
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1377

def max
  @max
end

#minFloat

Range minimum. Corresponds to the JSON property min

Returns:

  • (Float)


1382
1383
1384
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1382

def min
  @min
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1389
1390
1391
1392
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1389

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