Input

Input for the query, such as a time window.

JSON representation
{

  // Union field time_input can be only one of the following:
  "timeWindow": {
    object (Interval)
  },
  "relativeTime": {
    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:

timeWindow

object (Interval)

Time range to fetch data for.

relativeTime

object (RelativeTime)

Time range for the last x units.

RelativeTime

Time representation for the last x units.

JSON representation
{
  "timeUnit": enum (TimeUnit),
  "startTimeVal": string
}
Fields
timeUnit

enum (TimeUnit)

startTimeVal

string (int64 format)

TimeUnit

Time unit supported by the PAST filter operator.

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