Class: Google::Apis::DatabasecenterV1beta::TypedValue

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_valueFloat

The value of the metric as double. Corresponds to the JSON property doubleValue

Returns:

  • (Float)


2514
2515
2516
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 2514

def double_value
  @double_value
end

#int64_valueFixnum

The value of the metric as int. Corresponds to the JSON property int64Value

Returns:

  • (Fixnum)


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