Properties
| Name | Type | Description |
|---|---|---|
| start | object | This is the start date for the time range. Should be a valid ISO 8601 date-time string or relative time string. If not provided, defaults to the 7 days ago. Relative time strings of the format "-{numb |
| end | object | This is the end date for the time range. Should be a valid ISO 8601 date-time string or relative time string. If not provided, defaults to now. Relative time strings of the format "-{number}{unit}" ar |
| timezone | string | This is the timezone you want to set for the query. If not provided, defaults to UTC. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/InsightTimeRange",
"title": "InsightTimeRange",
"type": "object",
"properties": {
"start": {
"type": "object",
"description": "This is the start date for the time range.\n\nShould be a valid ISO 8601 date-time string or relative time string.\nIf not provided, defaults to the 7 days ago.\n\nRelative time strings of the format \"-{number}{unit}\" are allowed.\n\nValid units are:\n- d: days\n- h: hours\n- w: weeks\n- m: months\n- y: years",
"example": "\"2025-01-01\" or \"-7d\" or \"now\""
},
"end": {
"type": "object",
"description": "This is the end date for the time range.\n\nShould be a valid ISO 8601 date-time string or relative time string.\nIf not provided, defaults to now.\n\nRelative time strings of the format \"-{number}{unit}\" are allowed.\n\nValid units are:\n- d: days\n- h: hours\n- w: weeks\n- m: months\n- y: years",
"example": "\"2025-01-01\" or \"now\""
},
"timezone": {
"type": "string",
"description": "This is the timezone you want to set for the query.\n\nIf not provided, defaults to UTC."
}
}
}