Resource: DashboardQuery
DashboardQuery resource. NEXT TAG: 8
JSON representation |
---|
{
"name": string,
"query": string,
"input": {
object ( |
Fields | |
---|---|
name |
Output only. Name of the dashboardQuery. |
query |
Required. Search query string. |
input |
Required. Inputs to the query. |
dashboard_chart |
Output only. DashboardChart this query belongs to. |
Input
Input to the query like time window.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
time_window |
time range to fetch the data for. |
relative_time |
time range for last x units. |
RelativeTime
time representation for last x units.
JSON representation |
---|
{
"time_unit": enum ( |
Fields | |
---|---|
time_unit |
|
start_time_val |
|
TimeUnit
TimeUnit supported for PAST filter operator.
Enums | |
---|---|
TIME_UNIT_UNSPECIFIED |
Default unspecified. |
SECOND |
|
MINUTE |
|
HOUR |
|
DAY |
|
WEEK |
|
MONTH |
|
YEAR |
Methods |
|
---|---|
|
Execute a query and return the data. |
|
Get a dashboard query. |
|
List all dashboard queries. |