Google is committed to advancing racial equity for Black communities. See how.

AsyncQuery

JSON representation
{
  "self": string,
  "state": string,
  "created": string,
  "updated": string,
  "result": {
    object (Result)
  },
  "resultRows": string,
  "resultFileSize": string,
  "executionTime": string,
  "error": string,
  "queryParams": {
    object (QueryMetadata)
  },
  "reportDefinitionId": string,
  "name": string
}
Fields
state

string

Query state could be "enqueued", "running", "completed", "failed".

created

string

Creation time of the query.

updated

string

Last updated timestamp for the query.

result

object (Result)

Result is available only after the query is completed.

resultRows

string (Int64Value format)

ResultRows is available only after the query is completed.

resultFileSize

string

ResultFileSize is available only after the query is completed.

executionTime

string

ExecutionTime is available only after the query is completed.

error

string

Error is set when query fails.

queryParams

object (QueryMetadata)

Contains information like metrics, dimenstions etc of the AsyncQuery.

reportDefinitionId

string

Asynchronous Report ID.

name

string

Asynchronous Query Name.

Result

JSON representation
{
  "self": string,
  "expires": string
}
Fields
expires

string

Query result will be unaccessable after this time.

QueryMetadata

JSON representation
{
  "metrics": [
    string
  ],
  "dimensions": [
    string
  ],
  "startTimestamp": string,
  "endTimestamp": string,
  "outputFormat": string,
  "timeUnit": string
}
Fields
metrics[]

string

Metrics of the AsyncQuery.

Example: ["name:message_count,func:sum,alias:sum_message_count"]

dimensions[]

string

Dimensions of the AsyncQuery.

startTimestamp

string

Start timestamp of the query range.

endTimestamp

string

End timestamp of the query range.

outputFormat

string

Output format.

timeUnit

string

Query GroupBy time unit.