# TimeSeries

- [JSON representation](https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/TimeSeries#SCHEMA_REPRESENTATION)
- [Point](https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/TimeSeries#Point)
  - [JSON representation](https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/TimeSeries#Point.SCHEMA_REPRESENTATION)

A collection of data points that describes the time-varying values of a resource. A time series is identified by its ID. Next : 14

| JSON representation |
|---|
| ``` { "locationType": enum (`https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/LocationType`), "location": string, "isSpot": boolean, "machineFamily": string, "diskType": string, "confidentialMode": boolean, "gpuType": string, "tpuType": string, "machineShape": { object (`https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/MachineShape`) }, "gcsBucketTraffic": { object (`https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/GcsBucketTraffic`) }, "cloudResourceType": string, "points": [ { object (`https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/TimeSeries#Point`) } ], "unit": string } ``` |

| Fields ||
|---|---|
| `locationType` | ``enum (`https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/LocationType`)`` Required. The type of location that the time series is summarizing. |
| `location` | `string` Optional. The location of the usage data in time series. |
| `isSpot` | `boolean` Optional. The location of the usage data in time series. |
| `machineFamily` | `string` The machine family for the time series values to return. Possible values include "n1" and "n2d". |
| `diskType` | `string` The disk type for the time series values to return. |
| `confidentialMode` | `boolean` Optional. The confidential mode for disk. |
| `gpuType` | `string` The GPU type of the time series. |
| `tpuType` | `string` The TPU type of the time series. |
| `machineShape` | ``object (`https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/MachineShape`)`` The machine shape of the time series. |
| `gcsBucketTraffic` | ``object (`https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/GcsBucketTraffic`)`` Output only. The Cloud Storage bucket traffic resource for usage time series. |
| `cloudResourceType` | `string` The resource for the time series values to return. Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk", "gce-gpu", "gce-tpu" and "gce-vm". |
| `points[]` | ``object (`https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/TimeSeries#Point`)`` The data points of this time series. When listing time series, points are returned in chronological order. |
| `unit` | `string` The units in which the values are reported. |

## Point

A single data point in a time series.

| JSON representation |
|---|
| ``` { "eventTime": string, "value": number } ``` |

| Fields ||
|---|---|
| `eventTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` The time which the data point applies. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `value` | `number` The value of the data point. |