Reference documentation and code samples for the Cloud Logging V2 API module Google::Api::MetricDescriptor::MetricKind.
The kind of measurement. It describes how the data is reported.
For information on setting the start time and end time based on
the MetricKind, see [TimeInterval][google.monitoring.v3.TimeInterval].
Constants
METRIC_KIND_UNSPECIFIED
value: 0 Do not use this default value.
GAUGE
value: 1 An instantaneous measurement of a value.
DELTA
value: 2 The change in a value during a time interval.
CUMULATIVE
value: 3 A value accumulated over a time interval. Cumulative
measurements in a time series should have the same start time
and increasing end times, until an event resets the cumulative
value to zero and sets a new start time for the following
points.
[[["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 - Module Google::Api::MetricDescriptor::MetricKind (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-MetricDescriptor-MetricKind)\n- [1.2.1](/ruby/docs/reference/google-cloud-logging-v2/1.2.1/Google-Api-MetricDescriptor-MetricKind)\n- [1.1.0](/ruby/docs/reference/google-cloud-logging-v2/1.1.0/Google-Api-MetricDescriptor-MetricKind)\n- [1.0.1](/ruby/docs/reference/google-cloud-logging-v2/1.0.1/Google-Api-MetricDescriptor-MetricKind)\n- [0.13.0](/ruby/docs/reference/google-cloud-logging-v2/0.13.0/Google-Api-MetricDescriptor-MetricKind)\n- [0.12.2](/ruby/docs/reference/google-cloud-logging-v2/0.12.2/Google-Api-MetricDescriptor-MetricKind)\n- [0.11.0](/ruby/docs/reference/google-cloud-logging-v2/0.11.0/Google-Api-MetricDescriptor-MetricKind)\n- [0.10.1](/ruby/docs/reference/google-cloud-logging-v2/0.10.1/Google-Api-MetricDescriptor-MetricKind)\n- [0.9.0](/ruby/docs/reference/google-cloud-logging-v2/0.9.0/Google-Api-MetricDescriptor-MetricKind)\n- [0.8.1](/ruby/docs/reference/google-cloud-logging-v2/0.8.1/Google-Api-MetricDescriptor-MetricKind)\n- [0.7.0](/ruby/docs/reference/google-cloud-logging-v2/0.7.0/Google-Api-MetricDescriptor-MetricKind)\n- [0.6.0](/ruby/docs/reference/google-cloud-logging-v2/0.6.0/Google-Api-MetricDescriptor-MetricKind)\n- [0.5.6](/ruby/docs/reference/google-cloud-logging-v2/0.5.6/Google-Api-MetricDescriptor-MetricKind) \nReference documentation and code samples for the Cloud Logging V2 API module Google::Api::MetricDescriptor::MetricKind.\n\nThe kind of measurement. It describes how the data is reported.\nFor information on setting the start time and end time based on\nthe MetricKind, see \\[TimeInterval\\]\\[google.monitoring.v3.TimeInterval\\].\n\nConstants\n---------\n\n### METRIC_KIND_UNSPECIFIED\n\n**value:** 0 \nDo not use this default value.\n\n### GAUGE\n\n**value:** 1 \nAn instantaneous measurement of a value.\n\n### DELTA\n\n**value:** 2 \nThe change in a value during a time interval.\n\n### CUMULATIVE\n\n**value:** 3 \nA value accumulated over a time interval. Cumulative\nmeasurements in a time series should have the same start time\nand increasing end times, until an event resets the cumulative\nvalue to zero and sets a new start time for the following\npoints."]]