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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMonitoringV3Range

Returns a new instance of GoogleMonitoringV3Range.



1934
1935
1936
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1934

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

Instance Attribute Details

#maxFloat

Range maximum. Corresponds to the JSON property max

Returns:

  • (Float)


1927
1928
1929
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1927

def max
  @max
end

#minFloat

Range minimum. Corresponds to the JSON property min

Returns:

  • (Float)


1932
1933
1934
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1932

def min
  @min
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1939
1940
1941
1942
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1939

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