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.



1328
1329
1330
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1328

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

Instance Attribute Details

#double_valueFloat

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

Returns:

  • (Float)


1321
1322
1323
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1321

def double_value
  @double_value
end

#int_valueFixnum

An integer parameter value. Corresponds to the JSON property intValue

Returns:

  • (Fixnum)


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