{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-structure/prisma-access-insights-api-time-range-structure.json", "name": "TimeRange", "description": "Time range specification for the query", "type": "object", "properties": { "type": { "type": "string", "description": "Type of time range (absolute or relative)", "enum": [ "ABSOLUTE", "RELATIVE" ] }, "value": { "type": "object", "description": "Time range value (required for ABSOLUTE type)", "properties": { "from": { "type": "datetime", "description": "Start of the time range (ISO 8601)" }, "to": { "type": "datetime", "description": "End of the time range (ISO 8601)" } } }, "last": { "type": "object", "description": "Relative time range (required for RELATIVE type)", "properties": { "units": { "type": "string", "description": "Unit of time for relative range", "enum": [ "HOURS", "DAYS", "WEEKS" ] }, "value": { "type": "int32", "description": "Number of units for relative range" } } } }, "required": [ "type" ] }