Palo Alto Networks · Schema

TimeRange

Time range specification for the query

Cloud SecurityCybersecurityFirewallNetwork SecuritySASESOARThreat IntelligenceXDR

Properties

Name Type Description
type string Type of time range (absolute or relative)
value object Time range value (required for ABSOLUTE type)
last object Relative time range (required for RELATIVE type)
View JSON Schema on GitHub

JSON Schema

prisma-access-insights-api-time-range-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "TimeRange",
  "description": "Time range specification for the query",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-schema/prisma-access-insights-api-time-range-schema.json",
  "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": "string",
          "format": "date-time",
          "description": "Start of the time range (ISO 8601)"
        },
        "to": {
          "type": "string",
          "format": "date-time",
          "description": "End of the time range (ISO 8601)"
        }
      }
    },
    "last": {
      "type": "object",
      "description": "Relative time range (required for RELATIVE type)",
      "properties": {
        "units": {
          "type": "string",
          "enum": [
            "HOURS",
            "DAYS",
            "WEEKS"
          ],
          "description": "Unit of time for relative range"
        },
        "value": {
          "type": "integer",
          "description": "Number of units for relative range"
        }
      }
    }
  },
  "required": [
    "type"
  ]
}