{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-umbrella/json-schema/cisco-umbrella-category-by-hour-schema.json",
  "title": "CategoryByHour",
  "description": "The information about the categories seen by hour.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-umbrella-organization-requests-by-hour-and-category-api-openapi.yml#/components/schemas/CategoryByHour",
  "required": [
    "counts",
    "date",
    "time",
    "timestamp"
  ],
  "type": "object",
  "properties": {
    "timestamp": {
      "$ref": "#/$defs/TimestampForBucket"
    },
    "date": {
      "$ref": "#/$defs/Date"
    },
    "time": {
      "$ref": "#/$defs/Time"
    },
    "counts": {
      "type": "array",
      "description": "The list of counts for the category.",
      "items": {
        "$ref": "#/$defs/CategoryCount"
      }
    }
  },
  "$defs": {
    "Category": {
      "type": "object",
      "description": "The properties of the category.",
      "properties": {
        "id": {
          "type": "number",
          "description": "The ID of the category."
        },
        "label": {
          "type": "string",
          "description": "The descriptive label for the category."
        },
        "type": {
          "type": "string",
          "description": "The type of the category."
        },
        "integration": {
          "type": "boolean",
          "description": "Specifies whether the category is an integration."
        },
        "deprecated": {
          "type": "boolean",
          "description": "Specifies whether the category is a legacy category."
        }
      }
    },
    "CategoryCount": {
      "type": "object",
      "description": "The information about the category counts.",
      "properties": {
        "category": {
          "$ref": "#/$defs/Category"
        },
        "requests": {
          "type": "number",
          "description": "The total number of requests for the category."
        }
      },
      "required": [
        "category",
        "requests"
      ]
    },
    "Date": {
      "type": "string",
      "description": "The date from the timestamp based on the timezone parameter."
    },
    "Time": {
      "type": "string",
      "description": "The time in 24-hour format based on the timezone parameter."
    },
    "TimestampForBucket": {
      "type": "number",
      "description": "The timestamp represented in milliseconds for the bucket."
    }
  }
}