{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/main/json-schema/palo-alto-networks-types-trends-schema.json",
  "title": "types.Trends",
  "description": "Trends contains data on global trends in the system",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/palo-alto-networks-stats-api-openapi.yml#/components/schemas/types.Trends",
  "properties": {
    "complianceTrend": {
      "description": "ComplianceTrend represents the compliance trend.\n",
      "items": {
        "$ref": "#/$defs/types.ComplianceDailyStats"
      },
      "type": "array"
    },
    "defendersSummary": {
      "additionalProperties": {
        "$ref": "#/$defs/int"
      },
      "description": "DefendersSummary represents the defenders count of each category.\n",
      "type": "object"
    },
    "vulnerabilitySummary": {
      "$ref": "#/$defs/types.VulnerabilitySummary"
    }
  },
  "type": "object",
  "$defs": {
    "int": {
      "type": "integer"
    },
    "types.ComplianceDailyStats": {
      "description": "ComplianceDailyStats is the compliance daily stats",
      "properties": {
        "_id": {
          "description": "Date holds the date the data was collected.\n",
          "type": "string"
        },
        "distribution": {
          "$ref": "#/$defs/vuln.Distribution"
        },
        "modified": {
          "description": "Modified is the time the data was modified.\n",
          "format": "date-time",
          "type": "string"
        }
      },
      "type": "object"
    },
    "types.VulnerabilitySummary": {
      "description": "VulnerabilitySummary represents the stats of each impacted entity",
      "properties": {
        "containers": {
          "$ref": "#/$defs/vuln.Distribution"
        },
        "functions": {
          "$ref": "#/$defs/vuln.Distribution"
        },
        "hosts": {
          "$ref": "#/$defs/vuln.Distribution"
        },
        "images": {
          "$ref": "#/$defs/vuln.Distribution"
        },
        "registryImages": {
          "$ref": "#/$defs/vuln.Distribution"
        }
      },
      "type": "object"
    },
    "vuln.Distribution": {
      "description": "Distribution counts the number of vulnerabilities per type",
      "properties": {
        "critical": {
          "description": ".\n",
          "type": "integer"
        },
        "high": {
          "description": ".\n",
          "type": "integer"
        },
        "low": {
          "description": ".\n",
          "type": "integer"
        },
        "medium": {
          "description": ".\n",
          "type": "integer"
        },
        "total": {
          "description": ".\n",
          "type": "integer"
        }
      },
      "type": "object"
    }
  }
}