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.



1287
1288
1289
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1287

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

Instance Attribute Details

#double_valueFloat

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

Returns:

  • (Float)


1280
1281
1282
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1280

def double_value
  @double_value
end

#int_valueFixnum

An integer parameter value. Corresponds to the JSON property intValue

Returns:

  • (Fixnum)


1285
1286
1287
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1285

def int_value
  @int_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1292
1293
1294
1295
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1292

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