Class: Google::Apis::MonitoringV3::GoogleMonitoringV3Range
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::GoogleMonitoringV3Range
- 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
-
#max ⇒ Float
Range maximum.
-
#min ⇒ Float
Range minimum.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMonitoringV3Range
constructor
A new instance of GoogleMonitoringV3Range.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMonitoringV3Range
Returns a new instance of GoogleMonitoringV3Range.
1752 1753 1754 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1752 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max ⇒ Float
Range maximum.
Corresponds to the JSON property max
1745 1746 1747 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1745 def max @max end |
#min ⇒ Float
Range minimum.
Corresponds to the JSON property min
1750 1751 1752 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1750 def min @min end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1757 1758 1759 1760 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1757 def update!(**args) @max = args[:max] if args.key?(:max) @min = args[:min] if args.key?(:min) end |