Skip to main content

time_series

Overview

Nametime_series
TypeResource
Idgoogle.monitoring.time_series

Fields

NameDatatypeDescription
metadataobjectAuxiliary metadata for a MonitoredResource object. MonitoredResource objects contain the minimum set of information to uniquely identify a monitored resource instance. There is some other useful auxiliary metadata. Monitoring and Logging use an ingestion pipeline to extract metadata for cloud resources of all types, and store the metadata in this message.
metricobjectA specific metric, identified by specifying values for all of the labels of a MetricDescriptor.
metricKindstringThe metric kind of the time series. When listing time series, this metric kind might be different from the metric kind of the associated metric if this time series is an alignment or reduction of other time series.When creating a time series, this field is optional. 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.
pointsarrayThe 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.
resourceobjectAn object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for "gce_instance" has labels "project_id", "instance_id" and "zone": { "type": "gce_instance", "labels": { "project_id": "my-project", "instance_id": "12345678901234", "zone": "us-central1-a" }}
unitstringThe units in which the metric value is reported. It is only applicable if the value_type is INT64, DOUBLE, or DISTRIBUTION. The unit defines the representation of the stored metric values.
valueTypestringThe value type of the time series. When listing time series, this value type might be different from the value type of the associated metric if this time series is an alignment or reduction of other time series.When creating a time series, this field is optional. If present, it must be the same as the type of the data in the points field.

Methods

NameAccessible byRequired ParamsDescription
folders_time_series_listSELECTfoldersIdLists time series that match a filter.
organizations_time_series_listSELECTorganizationsIdLists time series that match a filter.
projects_time_series_listSELECTprojectsIdLists time series that match a filter.
projects_time_series_createINSERTprojectsIdCreates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response.
_folders_time_series_listEXECfoldersIdLists time series that match a filter.
_organizations_time_series_listEXECorganizationsIdLists time series that match a filter.
_projects_time_series_listEXECprojectsIdLists time series that match a filter.
projects_time_series_queryEXECprojectsIdQueries time series using Monitoring Query Language.