Class: Google::Apis::CloudmonitoringV2beta2::MetricDescriptorLabelDescriptor

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

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

#descriptionString

Label description. Corresponds to the JSON property description

Returns:

  • (String)


285
286
287
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 285

def description
  @description
end

#keyString

Label key. Corresponds to the JSON property key

Returns:

  • (String)


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