Class: Google::Apis::MonitoringV3::LabelValue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb

Overview

A label value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LabelValue

Returns a new instance of LabelValue.



2135
2136
2137
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2135

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

Instance Attribute Details

#bool_valueBoolean Also known as: bool_value?

A bool label value. Corresponds to the JSON property boolValue

Returns:

  • (Boolean)


2122
2123
2124
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2122

def bool_value
  @bool_value
end

#int64_valueFixnum

An int64 label value. Corresponds to the JSON property int64Value

Returns:

  • (Fixnum)


2128
2129
2130
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2128

def int64_value
  @int64_value
end

#string_valueString

A string label value. Corresponds to the JSON property stringValue

Returns:

  • (String)


2133
2134
2135
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2133

def string_value
  @string_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2140
2141
2142
2143
2144
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2140

def update!(**args)
  @bool_value = args[:bool_value] if args.key?(:bool_value)
  @int64_value = args[:int64_value] if args.key?(:int64_value)
  @string_value = args[:string_value] if args.key?(:string_value)
end