API Reference

This API reference is organized by resource type. Each resource type has one or more data representations and one or more methods.

Resource types

  1. MetricDescriptors
  2. Timeseries
  3. TimeseriesDescriptors

MetricDescriptors

For MetricDescriptors Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/cloudmonitoring/v2beta2/projects, unless otherwise noted
create POST  /project/metricDescriptors Create a new metric. See custom metrics for details of the use of this API.
delete DELETE  /project/metricDescriptors/metric Delete an existing metric.
list GET  /project/metricDescriptors List metric descriptors that match the query. If the query is not set, then all of the metric descriptors will be returned. Large responses will be paginated, use the nextPageToken returned in the response to request subsequent pages of results by setting the pageToken query parameter to the value of the nextPageToken.

Timeseries

For Timeseries Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/cloudmonitoring/v2beta2/projects, unless otherwise noted
list GET  /project/timeseries/metric List the data points of the time series that match the metric and labels values and that have data points in the interval. Large responses are paginated; use the nextPageToken returned in the response to request subsequent pages of results by setting the pageToken query parameter to the value of the nextPageToken.

Required query parameters: youngest

write POST  /project/timeseries:write

Write data points to one or more time series for one or more metrics.

See custom metrics for details of the use of this API.

TimeseriesDescriptors

For TimeseriesDescriptors Resource details, see the resource representation page.

Method HTTP request Description
URIs relative to https://www.googleapis.com/cloudmonitoring/v2beta2/projects, unless otherwise noted
list GET  /project/timeseriesDescriptors/metric List the descriptors of the time series that match the metric and labels values and that have data points in the interval. Large responses are paginated; use the nextPageToken returned in the response to request subsequent pages of results by setting the pageToken query parameter to the value of the nextPageToken.

Required query parameters: youngest

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Stackdriver Monitoring