Class: Google::Api::Metric

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/api/metric.rb

Overview

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

Defined Under Namespace

Classes: LabelsEntry

Instance Attribute Summary collapse

Instance Attribute Details

#labels::Google::Protobuf::Map{::String => ::String}

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

Returns:

  • (::Google::Protobuf::Map{::String => ::String})

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



189
190
191
192
193
194
195
196
197
198
199
200
201
# File 'proto_docs/google/api/metric.rb', line 189

class Metric
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#type::String

Returns An existing metric type, see google.api.MetricDescriptor. For example, custom.googleapis.com/invoice/paid/amount.

Returns:



189
190
191
192
193
194
195
196
197
198
199
200
201
# File 'proto_docs/google/api/metric.rb', line 189

class Metric
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end