- [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/Input#SCHEMA_REPRESENTATION)
- [RelativeTime](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/Input#RelativeTime)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/Input#RelativeTime.SCHEMA_REPRESENTATION)
- [TimeUnit](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/Input#TimeUnit)

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 (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Interval`) }, "relativeTime": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/Input#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 (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Interval`)`` Time range to fetch data for. |
| `relativeTime` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/Input#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 (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/Input#TimeUnit`), "startTimeVal": string } ``` |

| Fields ||
|---|---|
| `timeUnit` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/Input#TimeUnit`)`` |
| `startTimeVal` | `string (https://developers.google.com/discovery/v1/type-format format)` |

## TimeUnit

Time unit supported by the PAST filter operator.

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