Input

Input for the query, such as a time window.

JSON representation
{

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "timeWindow": {
    object (Interval)
  },
  "relativeTime": {
    object (RelativeTime)
  }
  // End of mutually exclusive fields.
}
Fields
The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
timeWindow

object (Interval)

Time range to fetch data for.

relativeTime

object (RelativeTime)

Time range for the last x units.

End of mutually exclusive fields.

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