Reference documentation and code samples for the Service Management V1 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-07 UTC."],[],[],null,["# Service Management V1 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-service_management-v1/latest/Google-Api-MetricDescriptor-MetricKind)\n- [1.2.1](/ruby/docs/reference/google-cloud-service_management-v1/1.2.1/Google-Api-MetricDescriptor-MetricKind)\n- [1.1.0](/ruby/docs/reference/google-cloud-service_management-v1/1.1.0/Google-Api-MetricDescriptor-MetricKind)\n- [1.0.2](/ruby/docs/reference/google-cloud-service_management-v1/1.0.2/Google-Api-MetricDescriptor-MetricKind)\n- [0.11.0](/ruby/docs/reference/google-cloud-service_management-v1/0.11.0/Google-Api-MetricDescriptor-MetricKind)\n- [0.10.2](/ruby/docs/reference/google-cloud-service_management-v1/0.10.2/Google-Api-MetricDescriptor-MetricKind)\n- [0.9.0](/ruby/docs/reference/google-cloud-service_management-v1/0.9.0/Google-Api-MetricDescriptor-MetricKind)\n- [0.8.0](/ruby/docs/reference/google-cloud-service_management-v1/0.8.0/Google-Api-MetricDescriptor-MetricKind)\n- [0.7.0](/ruby/docs/reference/google-cloud-service_management-v1/0.7.0/Google-Api-MetricDescriptor-MetricKind)\n- [0.6.1](/ruby/docs/reference/google-cloud-service_management-v1/0.6.1/Google-Api-MetricDescriptor-MetricKind)\n- [0.5.0](/ruby/docs/reference/google-cloud-service_management-v1/0.5.0/Google-Api-MetricDescriptor-MetricKind)\n- [0.4.1](/ruby/docs/reference/google-cloud-service_management-v1/0.4.1/Google-Api-MetricDescriptor-MetricKind)\n- [0.3.10](/ruby/docs/reference/google-cloud-service_management-v1/0.3.10/Google-Api-MetricDescriptor-MetricKind) \nReference documentation and code samples for the Service Management V1 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."]]