Method: projects.locations.datasets.appendEvents

Stay organized with collections Save and categorize content based on your preferences.

Append events to a LOADED DataSet.

HTTP request

POST https://timeseriesinsights.googleapis.com/v1/{dataset=projects/*/locations/*/datasets/*}:appendEvents

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
dataset

string

Required. The DataSet to which we want to append to in the format of "projects/{project}/datasets/{dataset}"

Request body

The request body contains data with the following structure:

JSON representation
{
  "events": [
    {
      object (Event)
    }
  ]
}
Fields
events[]

object (Event)

Events to be appended.

Note:

  1. The DataSet must be shown in a LOADED state in the results of list method; otherwise, all events from the append request will be dropped, and a NOT_FOUND status will be returned.
  2. All events in a single request must have the same groupId if set; otherwise, an INVALID_ARGUMENT status will be returned.
  3. If groupId is not set (or 0), there should be only 1 event; otherwise, an INVALID_ARGUMENT status will be returned.
  4. The events must be newer than the current time minus DataSet TTL or they will be dropped.

Response body

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

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the dataset resource:

  • timeseriesinsights.datasets.update

For more information, see the IAM documentation.