Class: Google::Apis::MonitoringV1::Parameter
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::Parameter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/monitoring_v1/classes.rb,
lib/google/apis/monitoring_v1/representations.rb,
lib/google/apis/monitoring_v1/representations.rb
Overview
Preview: Parameter value applied to the aggregation function. This is a preview feature and may be subject to change before final release.
Instance Attribute Summary collapse
-
#double_value ⇒ Float
A floating-point parameter value.
-
#int_value ⇒ Fixnum
An integer parameter value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Parameter
constructor
A new instance of Parameter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Parameter
Returns a new instance of Parameter.
1328 1329 1330 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1328 def initialize(**args) update!(**args) end |
Instance Attribute Details
#double_value ⇒ Float
A floating-point parameter value.
Corresponds to the JSON property doubleValue
1321 1322 1323 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1321 def double_value @double_value end |
#int_value ⇒ Fixnum
An integer parameter value.
Corresponds to the JSON property intValue
1326 1327 1328 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1326 def int_value @int_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1333 1334 1335 1336 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1333 def update!(**args) @double_value = args[:double_value] if args.key?(:double_value) @int_value = args[:int_value] if args.key?(:int_value) end |