Class: Google::Apis::CloudmonitoringV2beta2::MetricDescriptorLabelDescriptor
- Inherits:
-
Object
- Object
- Google::Apis::CloudmonitoringV2beta2::MetricDescriptorLabelDescriptor
- Defined in:
- generated/google/apis/cloudmonitoring_v2beta2/classes.rb,
generated/google/apis/cloudmonitoring_v2beta2/representations.rb,
generated/google/apis/cloudmonitoring_v2beta2/representations.rb
Overview
A label in a metric is a description of this metric, including the key of this description (what the description is), and the value for this description.
Instance Attribute Summary collapse
-
#description ⇒ String
Label description.
-
#key ⇒ String
Label key.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MetricDescriptorLabelDescriptor
constructor
A new instance of MetricDescriptorLabelDescriptor.
-
#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) ⇒ MetricDescriptorLabelDescriptor
Returns a new instance of MetricDescriptorLabelDescriptor
292 293 294 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 292 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Label description.
Corresponds to the JSON property description
285 286 287 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 285 def description @description end |
#key ⇒ String
Label key.
Corresponds to the JSON property key
290 291 292 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 290 def key @key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
297 298 299 300 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 297 def update!(**args) @description = args[:description] if args.key?(:description) @key = args[:key] if args.key?(:key) end |