Class: Google::Apis::MonitoringV1::Parameter

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Parameter

Returns a new instance of Parameter.



1444
1445
1446
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1444

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

Instance Attribute Details

#double_valueFloat

A floating-point parameter value. Corresponds to the JSON property doubleValue

Returns:

  • (Float)


1437
1438
1439
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1437

def double_value
  @double_value
end

#int_valueFixnum

An integer parameter value. Corresponds to the JSON property intValue

Returns:

  • (Fixnum)


1442
1443
1444
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1442

def int_value
  @int_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1449
1450
1451
1452
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1449

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