Reference documentation and code samples for the Google API Common Protos Client class 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.
Protobuf type google.api.MetricDescriptor.MetricKind
Namespace
Google \ Api \ MetricDescriptor
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
METRIC_KIND_UNSPECIFIED
Value: 0
Do not use this default value.
Generated from protobuf enum METRIC_KIND_UNSPECIFIED = 0;
GAUGE
Value: 1
An instantaneous measurement of a value.
Generated from protobuf enum GAUGE = 1;
DELTA
Value: 2
The change in a value during a time interval.
Generated from protobuf enum DELTA = 2;
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,["# Google API Common Protos Client - Class MetricKind (4.12.3)\n\nVersion latestkeyboard_arrow_down\n\n- [4.12.3 (latest)](/php/docs/reference/common-protos/latest/Api.MetricDescriptor.MetricKind)\n- [4.12.2](/php/docs/reference/common-protos/4.12.2/Api.MetricDescriptor.MetricKind)\n- [4.11.0](/php/docs/reference/common-protos/4.11.0/Api.MetricDescriptor.MetricKind)\n- [4.10.0](/php/docs/reference/common-protos/4.10.0/Api.MetricDescriptor.MetricKind)\n- [4.9.0](/php/docs/reference/common-protos/4.9.0/Api.MetricDescriptor.MetricKind)\n- [4.8.3](/php/docs/reference/common-protos/4.8.3/Api.MetricDescriptor.MetricKind) \nReference documentation and code samples for the Google API Common Protos Client class MetricKind.\n\nThe kind of measurement. It describes how the data is reported.\n\nFor information on setting the start time and end time based on\nthe MetricKind, see TimeInterval.\n\nProtobuf type `google.api.MetricDescriptor.MetricKind`\n\nNamespace\n---------\n\nGoogle \\\\ Api \\\\ MetricDescriptor\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### METRIC_KIND_UNSPECIFIED\n\n Value: 0\n\nDo not use this default value.\n\nGenerated from protobuf enum `METRIC_KIND_UNSPECIFIED = 0;`\n\n### GAUGE\n\n Value: 1\n\nAn instantaneous measurement of a value.\n\nGenerated from protobuf enum `GAUGE = 1;`\n\n### DELTA\n\n Value: 2\n\nThe change in a value during a time interval.\n\nGenerated from protobuf enum `DELTA = 2;`\n\n### CUMULATIVE\n\n Value: 3\n\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.\n\nGenerated from protobuf enum `CUMULATIVE = 3;`"]]