class Google::Apis::CloudmonitoringV2beta2::MetricDescriptor

A metricDescriptor defines the name, label keys, and data type of a particular metric.

Attributes

description[RW]

Description of this metric. Corresponds to the JSON property `description` @return [String]

labels[RW]

Labels defined for this metric. Corresponds to the JSON property `labels` @return [Array<Google::Apis::CloudmonitoringV2beta2::MetricDescriptorLabelDescriptor>]

name[RW]

The name of this metric. Corresponds to the JSON property `name` @return [String]

project[RW]

The project ID to which the metric belongs. Corresponds to the JSON property `project` @return [String]

type_descriptor[RW]

A type in a metric contains information about how the metric is collected and what its data points look like. Corresponds to the JSON property `typeDescriptor` @return [Google::Apis::CloudmonitoringV2beta2::MetricDescriptorTypeDescriptor]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/cloudmonitoring_v2beta2/classes.rb, line 263
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/cloudmonitoring_v2beta2/classes.rb, line 268
def update!(**args)
  @description = args[:description] if args.key?(:description)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @project = args[:project] if args.key?(:project)
  @type_descriptor = args[:type_descriptor] if args.key?(:type_descriptor)
end