TimeRange¶
| Field | Type | Description |
|---|---|---|
| fixed_time_range | A fixed time range with explicit start and end times. This will ignore any look back delay settings. (Only one of fixed_time_range, or relative_time_range can be set) |
|
| relative_time_range | A relative time range, defined as a duration back from 'now', minus any look back delay. If this is 15 minutes, and the lookback delay is 5 minutes, this represents the time range from 20 minutes ago to 5 minutes ago. (Only one of relative_time_range, or fixed_time_range can be set) |
Example¶
JSON
{
"relative_time_range": {
"duration": "3600s",
"offset": "3600s"
}
}
TimeRange.FixedTimeRange¶
| Field | Type | Description |
|---|---|---|
| start_time | google.protobuf.Timestamp | The start time of the time range. |
| end_time | google.protobuf.Timestamp | The end time of the time range. |
Example¶
JSON
{
"end_time": "2024-01-15T09:30:00Z",
"start_time": "2024-01-15T09:30:00Z"
}
TimeRange.RelativeTimeRange¶
| Field | Type | Description |
|---|---|---|
| duration | google.protobuf.Duration | The duration back from 'now' for the start of the time range. |
| offset | google.protobuf.Duration | An optional offset to apply to both the start and end times. |
Example¶
JSON
{
"duration": "3600s",
"offset": "3600s"
}