Class: Google::Apis::CloudmonitoringV2beta2::MetricDescriptorTypeDescriptor

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 type in a metric contains information about how the metric is collected and what its data points look like.

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) ⇒ MetricDescriptorTypeDescriptor

Returns a new instance of MetricDescriptorTypeDescriptor.


319
320
321
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 319

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#metric_typeString

The method of collecting data for the metric. See Metric types. Corresponds to the JSON property metricType

Returns:

  • (String)

311
312
313
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 311

def metric_type
  @metric_type
end

#value_typeString

The data type of of individual points in the metric's time series. See Metric value types. Corresponds to the JSON property valueType

Returns:

  • (String)

317
318
319
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 317

def value_type
  @value_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


324
325
326
327
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 324

def update!(**args)
  @metric_type = args[:metric_type] if args.key?(:metric_type)
  @value_type = args[:value_type] if args.key?(:value_type)
end