Class: Google::Api::Metric

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/logging/v2/doc/google/api/metric.rb

Overview

A specific metric, identified by specifying values for all of the labels of a +MetricDescriptor+.

Instance Attribute Summary collapse

Instance Attribute Details

#labelsHash{String => String}

Returns The set of label values that uniquely identify this metric. All labels listed in the +MetricDescriptor+ must be assigned values.

Returns:

  • (Hash{String => String})

    The set of label values that uniquely identify this metric. All labels listed in the +MetricDescriptor+ must be assigned values.



185
# File 'lib/google/cloud/logging/v2/doc/google/api/metric.rb', line 185

class Metric; end

#typeString

Returns An existing metric type, see Google::Api::MetricDescriptor. For example, +custom.googleapis.com/invoice/paid/amount+.

Returns:



185
# File 'lib/google/cloud/logging/v2/doc/google/api/metric.rb', line 185

class Metric; end