Palo Alto Networks · JSON Structure

Prisma Access Insights Api Time Range Structure

Time range specification for the query

Type: object Properties: 3 Required: 1
Cloud SecurityCybersecurityFirewallNetwork SecuritySASESOARThreat IntelligenceXDR

TimeRange is a JSON Structure definition published by Palo Alto Networks, describing 3 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

type value last

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$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"
  ]
}