Resource: DashboardQuery
DashboardQuery resource. NEXT TAG: 6
| 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.  | 
              
dashboardChart | 
                
                   
 Output only. DashboardChart this query belongs to.  | 
              
etag | 
                
                   
 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  | 
                
| Fields | |
|---|---|
Union field  
  | 
                |
timeWindow | 
                  
                     
 time range to fetch the data for.  | 
                
relativeTime | 
                  
                     
 time range for last x units.  | 
                
RelativeTime
time representation for last x units.
| JSON representation | 
|---|
{
  "timeUnit": enum ( | 
                
| Fields | |
|---|---|
timeUnit | 
                  
                     
  | 
                
startTimeVal | 
                  
                     
  | 
                
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. |