Class: Google::Apis::CloudmonitoringV2beta2::TimeseriesDescriptorLabel
- Inherits:
-
Object
- Object
- Google::Apis::CloudmonitoringV2beta2::TimeseriesDescriptorLabel
- Defined in:
- generated/google/apis/cloudmonitoring_v2beta2/classes.rb,
generated/google/apis/cloudmonitoring_v2beta2/representations.rb,
generated/google/apis/cloudmonitoring_v2beta2/representations.rb
Instance Attribute Summary collapse
-
#key ⇒ String
The label's name.
-
#value ⇒ String
The label's value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimeseriesDescriptorLabel
constructor
A new instance of TimeseriesDescriptorLabel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ TimeseriesDescriptorLabel
Returns a new instance of TimeseriesDescriptorLabel
593 594 595 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 593 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
The label's name.
Corresponds to the JSON property key
586 587 588 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 586 def key @key end |
#value ⇒ String
The label's value.
Corresponds to the JSON property value
591 592 593 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 591 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
598 599 600 601 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 598 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |