Class: Google::Apis::CloudmonitoringV2beta2::MetricDescriptorTypeDescriptor
- Inherits:
-
Object
- Object
- Google::Apis::CloudmonitoringV2beta2::MetricDescriptorTypeDescriptor
- 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
-
#metric_type ⇒ String
The method of collecting data for the metric.
-
#value_type ⇒ String
The data type of of individual points in the metric's time series.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MetricDescriptorTypeDescriptor
constructor
A new instance of MetricDescriptorTypeDescriptor.
-
#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) ⇒ 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_type ⇒ String
The method of collecting data for the metric. See Metric types.
Corresponds to the JSON property metricType
311 312 313 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 311 def metric_type @metric_type end |
#value_type ⇒ String
The data type of of individual points in the metric's time series. See Metric
value types.
Corresponds to the JSON property valueType
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 |