Class: Google::Apis::DatabasecenterV1beta::TypedValue
- Inherits:
-
Object
- Object
- Google::Apis::DatabasecenterV1beta::TypedValue
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/databasecenter_v1beta/classes.rb,
lib/google/apis/databasecenter_v1beta/representations.rb,
lib/google/apis/databasecenter_v1beta/representations.rb
Overview
TypedValue represents the value of the metric based on data type.
Instance Attribute Summary collapse
-
#double_value ⇒ Float
The value of the metric as double.
-
#int64_value ⇒ Fixnum
The value of the metric as int.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TypedValue
constructor
A new instance of TypedValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TypedValue
Returns a new instance of TypedValue.
2521 2522 2523 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 2521 def initialize(**args) update!(**args) end |
Instance Attribute Details
#double_value ⇒ Float
The value of the metric as double.
Corresponds to the JSON property doubleValue
2514 2515 2516 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 2514 def double_value @double_value end |
#int64_value ⇒ Fixnum
The value of the metric as int.
Corresponds to the JSON property int64Value
2519 2520 2521 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 2519 def int64_value @int64_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2526 2527 2528 2529 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 2526 def update!(**args) @double_value = args[:double_value] if args.key?(:double_value) @int64_value = args[:int64_value] if args.key?(:int64_value) end |