Class: Google::Apis::MonitoringV3::LabelValue
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::LabelValue
- 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
-
#bool_value ⇒ Boolean
(also: #bool_value?)
A bool label value.
-
#int64_value ⇒ Fixnum
An int64 label value.
-
#string_value ⇒ String
A string label value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LabelValue
constructor
A new instance of LabelValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LabelValue
Returns a new instance of LabelValue.
1950 1951 1952 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1950 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bool_value ⇒ Boolean Also known as: bool_value?
A bool label value.
Corresponds to the JSON property boolValue
1937 1938 1939 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1937 def bool_value @bool_value end |
#int64_value ⇒ Fixnum
An int64 label value.
Corresponds to the JSON property int64Value
1943 1944 1945 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1943 def int64_value @int64_value end |
#string_value ⇒ String
A string label value.
Corresponds to the JSON property stringValue
1948 1949 1950 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1948 def string_value @string_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1955 1956 1957 1958 1959 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1955 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 |