REST Resource: projects.locations.instances.dashboardQueries

Resource: DashboardQuery

DashboardQuery resource. NEXT TAG: 6

JSON representation
{
  "name": string,
  "query": string,
  "input": {
    object (Input)
  },
  "dashboard_chart": string,
  "etag": string
}
Fields
name

string

Output only. Name of the dashboardQuery.

query

string

Required. Search query string.

input

object (Input)

Required. Inputs to the query.

dashboard_chart

string

Output only. DashboardChart this query belongs to.

etag

string

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

Input

Input to the query like time window.

JSON representation
{

  // Union field time_input can be only one of the following:
  "time_window": {
    object (Interval)
  },
  "relative_time": {
    object (RelativeTime)
  }
  // End of list of possible types for union field time_input.
}
Fields

Union field time_input.

time_input can be only one of the following:

time_window

object (Interval)

time range to fetch the data for.

relative_time

object (RelativeTime)

time range for last x units.

RelativeTime

time representation for last x units.

JSON representation
{
  "time_unit": enum (TimeUnit),
  "start_time_val": string
}
Fields
time_unit

enum (TimeUnit)

start_time_val

string (int64 format)

TimeUnit

TimeUnit supported for PAST filter operator.

Enums
TIME_UNIT_UNSPECIFIED Default unspecified.
SECOND
MINUTE
HOUR
DAY
WEEK
MONTH
YEAR

Methods

execute

Execute a query and return the data.

get

Get a dashboard query.

list

List all dashboard queries.