If present, it must be the same as the metric kind of the associated metric. If the associated metric's descriptor must be auto-created, then this field specifies the metric kind of the new descriptor and must be either GAUGE (the default) or CUMULATIVE.
Required. The data points of this time series. When listing time series, points are returned in reverse time order.
When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION.
The time interval to which the data point applies. For GAUGE metrics, the start time does not need to be supplied, but if it is supplied, it must equal the end time. For DELTA metrics, the start and end time should specify a non-zero interval, with subsequent points specifying contiguous and non-overlapping intervals. For CUMULATIVE metrics, the start and end time should specify a non-zero interval, with subsequent points specifying 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.
A time interval extending just after a start time through an end time. If the start time is the same as the end time, then the interval represents a single point in time.
Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.
{// Union field value can be only one of the following:"boolValue": boolean,"int64Value": string,"doubleValue": number,"stringValue": string,"distributionValue": {object (Distribution)}// End of list of possible types for union field value.}
Fields
Union field value. The typed value field. value can be only one of the following:
[[["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-07-02 UTC."],[[["\u003cp\u003eThis content defines the structure and types for metrics used within a SubTask, including their JSON representation and fields.\u003c/p\u003e\n"],["\u003cp\u003eA metric consists of a name (\u003ccode\u003emetric\u003c/code\u003e), value type (\u003ccode\u003evalueType\u003c/code\u003e), metric kind (\u003ccode\u003emetricKind\u003c/code\u003e), and an array of data points (\u003ccode\u003epoints\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eEach data point (\u003ccode\u003ePoint\u003c/code\u003e) in a metric's time series contains a time interval (\u003ccode\u003einterval\u003c/code\u003e) and a strongly-typed value (\u003ccode\u003evalue\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe time interval (\u003ccode\u003eTimeInterval\u003c/code\u003e) specifies the period the data point applies to, using a start time and an end time in Timestamp format.\u003c/p\u003e\n"],["\u003cp\u003eThe typed value (\u003ccode\u003eTypedValue\u003c/code\u003e) can be one of several types: boolean, 64-bit integer, double-precision float, string, or a distribution value.\u003c/p\u003e\n"]]],[],null,["# TimeSeries\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [Point](#Point)\n - [JSON representation](#Point.SCHEMA_REPRESENTATION)\n- [TimeInterval](#TimeInterval)\n - [JSON representation](#TimeInterval.SCHEMA_REPRESENTATION)\n- [TypedValue](#TypedValue)\n - [JSON representation](#TypedValue.SCHEMA_REPRESENTATION)\n\nThe metrics object for a SubTask.\n\nPoint\n-----\n\nA single data point in a time series.\n\nTimeInterval\n------------\n\nA time interval extending just after a start time through an end time. If the start time is the same as the end time, then the interval represents a single point in time.\n\nTypedValue\n----------\n\nA single strongly-typed value."]]