(::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.
value (::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.
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.
#type
deftype()->::String
Returns
(::String) — An existing metric type, see
google.api.MetricDescriptor. For example,
custom.googleapis.com/invoice/paid/amount.
#type=
deftype=(value)->::String
Parameter
value (::String) — An existing metric type, see
google.api.MetricDescriptor. For example,
custom.googleapis.com/invoice/paid/amount.
Returns
(::String) — An existing metric type, see
google.api.MetricDescriptor. For example,
custom.googleapis.com/invoice/paid/amount.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Cloud Logging V2 API - Class Google::Api::Metric (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-Metric)\n- [1.2.1](/ruby/docs/reference/google-cloud-logging-v2/1.2.1/Google-Api-Metric)\n- [1.1.0](/ruby/docs/reference/google-cloud-logging-v2/1.1.0/Google-Api-Metric)\n- [1.0.1](/ruby/docs/reference/google-cloud-logging-v2/1.0.1/Google-Api-Metric)\n- [0.13.0](/ruby/docs/reference/google-cloud-logging-v2/0.13.0/Google-Api-Metric)\n- [0.12.2](/ruby/docs/reference/google-cloud-logging-v2/0.12.2/Google-Api-Metric)\n- [0.11.0](/ruby/docs/reference/google-cloud-logging-v2/0.11.0/Google-Api-Metric)\n- [0.10.1](/ruby/docs/reference/google-cloud-logging-v2/0.10.1/Google-Api-Metric)\n- [0.9.0](/ruby/docs/reference/google-cloud-logging-v2/0.9.0/Google-Api-Metric)\n- [0.8.1](/ruby/docs/reference/google-cloud-logging-v2/0.8.1/Google-Api-Metric)\n- [0.7.0](/ruby/docs/reference/google-cloud-logging-v2/0.7.0/Google-Api-Metric)\n- [0.6.0](/ruby/docs/reference/google-cloud-logging-v2/0.6.0/Google-Api-Metric)\n- [0.5.6](/ruby/docs/reference/google-cloud-logging-v2/0.5.6/Google-Api-Metric) \nReference documentation and code samples for the Cloud Logging V2 API class Google::Api::Metric.\n\nA specific metric, identified by specifying values for all of the\nlabels of a [`MetricDescriptor`](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-MetricDescriptor \"Google::Api::MetricDescriptor (class)\"). \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #labels\n\n def labels() -\u003e ::Google::Protobuf::Map{::String =\u003e ::String}\n\n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- The set of label values that uniquely identify this metric. All labels listed in the `MetricDescriptor` must be assigned values.\n\n### #labels=\n\n def labels=(value) -\u003e ::Google::Protobuf::Map{::String =\u003e ::String}\n\n**Parameter**\n\n- **value** (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- The set of label values that uniquely identify this metric. All labels listed in the `MetricDescriptor` must be assigned values. \n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- The set of label values that uniquely identify this metric. All labels listed in the `MetricDescriptor` must be assigned values.\n\n### #type\n\n def type() -\u003e ::String\n\n**Returns**\n\n- (::String) --- An existing metric type, see [google.api.MetricDescriptor](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-MetricDescriptor \"Google::Api::MetricDescriptor (class)\"). For example, `custom.googleapis.com/invoice/paid/amount`.\n\n### #type=\n\n def type=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- An existing metric type, see [google.api.MetricDescriptor](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-MetricDescriptor \"Google::Api::MetricDescriptor (class)\"). For example, `custom.googleapis.com/invoice/paid/amount`. \n**Returns**\n\n- (::String) --- An existing metric type, see [google.api.MetricDescriptor](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-MetricDescriptor \"Google::Api::MetricDescriptor (class)\"). For example, `custom.googleapis.com/invoice/paid/amount`."]]