Method: projects.datasets.fetchTimeseries

Fetch the timeseries data from loaded DataSet.

HTTP request

POST https://{endpoint}/v1/{dataset=projects/*/datasets/*}:fetchTimeseries

Where {endpoint} is one of the supported service endpoints.

The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
dataset

string

Required. Loaded DataSet to be queried in the format of "projects/{project}/datasets/{dataset}"

Request body

The request body contains data with the following structure:

JSON representation
{
  "pinnedDimensions": [
    {
      object (EventDimension)
    }
  ],
  "timeInterval": {
    object (TimeInterval)
  },
  "bucketLength": string,
  "aggregatedDimension": string
}
Fields
pinnedDimensions[]

object (EventDimension)

Dimensions with pinned values to fetch time timeseries.

timeInterval

object (TimeInterval)

Time interval of the timeseries to return.

bucketLength

string (Duration format)

Timeseries bucket length.

A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".

aggregatedDimension

string

If non-empty, it denotes the name of a numerical dimension present in the events of a slice that specifies that will have its values summed up to compute the time series.

Response body

If successful, the response body contains an instance of Timeseries.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.