{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-umbrella/json-schema/cisco-umbrella-activity-dns-schema.json",
  "title": "ActivityDns",
  "description": "The information about the DNS activity.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-umbrella-activity-api-openapi.yml#/components/schemas/ActivityDns",
  "type": "object",
  "properties": {
    "externalip": {
      "type": "string",
      "description": "The external IP for the entry."
    },
    "internalip": {
      "type": "string",
      "description": "The internal IP for the entry."
    },
    "policycategories": {
      "type": "array",
      "description": "The list of the policy categories.",
      "items": {
        "$ref": "#/$defs/Category"
      }
    },
    "categories": {
      "$ref": "#/$defs/categories"
    },
    "verdict": {
      "$ref": "#/$defs/verdict"
    },
    "domain": {
      "type": "string",
      "description": "The domain name for the entry."
    },
    "timestamp": {
      "$ref": "#/$defs/Timestamp"
    },
    "identities": {
      "$ref": "#/$defs/identities"
    },
    "allapplications": {
      "type": "array",
      "description": "The list of all applications for the entry.",
      "items": {
        "$ref": "#/$defs/Application"
      }
    },
    "threats": {
      "type": "array",
      "description": "The list of threats for the entry.",
      "items": {
        "$ref": "#/$defs/Threat"
      }
    },
    "type": {
      "type": "string",
      "description": "The type of the request. A DNS request always has the type dns.",
      "enum": [
        "dns"
      ]
    },
    "querytype": {
      "type": "string",
      "description": "The type of DNS request that was made. For more information,\nsee Common DNS Request Types."
    },
    "date": {
      "$ref": "#/$defs/Date"
    },
    "time": {
      "$ref": "#/$defs/Time"
    },
    "returncode": {
      "type": "number",
      "description": "The DNS return code for this request.\nFor more information, see Common DNS return codes for any\nDNS service (and Umbrella)."
    },
    "allowedapplications": {
      "type": "array",
      "description": "The list of allowed applications.",
      "items": {
        "$ref": "#/$defs/Application"
      }
    },
    "blockedapplications": {
      "type": "array",
      "description": "The list of blocked applications.",
      "items": {
        "$ref": "#/$defs/Application"
      }
    }
  },
  "required": [
    "allapplications",
    "allowedapplications",
    "blockedapplications",
    "categories",
    "date",
    "domain",
    "externalip",
    "identities",
    "internalip",
    "policycategories",
    "querytype",
    "returncode",
    "threats",
    "time",
    "timestamp",
    "type",
    "verdict"
  ],
  "$defs": {
    "Application": {
      "type": "object",
      "description": "The information about the application.",
      "properties": {
        "id": {
          "type": "number",
          "description": "The ID of the application."
        },
        "label": {
          "type": "string",
          "description": "The descriptive label for the application."
        },
        "type": {
          "type": "string",
          "description": "The type of the application: NBAR or AVC.",
          "enum": [
            "NBAR",
            "AVC"
          ]
        },
        "category": {
          "type": "object",
          "description": "The category of the application.",
          "properties": {
            "id": {
              "type": "number",
              "description": "The ID of the application category."
            },
            "label": {
              "type": "string",
              "description": "The label of the application category."
            }
          }
        }
      }
    },
    "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."
        }
      }
    },
    "Date": {
      "type": "string",
      "description": "The date from the timestamp based on the timezone parameter."
    },
    "Identity": {
      "type": "object",
      "description": "The information about the identity.",
      "properties": {
        "id": {
          "type": "number",
          "description": "The ID of the identity."
        },
        "label": {
          "type": "string",
          "description": "The descriptive label for the identity."
        },
        "type": {
          "$ref": "#/$defs/IdentityType"
        },
        "deleted": {
          "type": "boolean",
          "description": "Indicates whether the identity was deleted."
        }
      },
      "required": [
        "id",
        "label",
        "type",
        "deleted"
      ]
    },
    "IdentityType": {
      "type": "object",
      "description": "The information about the identity including the type.",
      "properties": {
        "id": {
          "type": "number",
          "description": "The ID of the origin type for the identity."
        },
        "label": {
          "type": "string",
          "description": "The label of the origin type for the identity."
        },
        "type": {
          "type": "string",
          "description": "The name of the origin type for the identity."
        }
      }
    },
    "Threat": {
      "type": "object",
      "description": "The information about the threat.",
      "properties": {
        "label": {
          "type": "string",
          "description": "The descriptive label for the threat name."
        },
        "type": {
          "type": "string",
          "description": "The type of the threat."
        }
      }
    },
    "Time": {
      "type": "string",
      "description": "The time in 24-hour format based on the timezone parameter."
    },
    "Timestamp": {
      "type": "number",
      "description": "The timestamp represented in milliseconds."
    },
    "categories": {
      "type": "array",
      "description": "The list of categories.",
      "items": {
        "$ref": "#/$defs/Category"
      }
    },
    "identities": {
      "type": "array",
      "description": "The list of identities for the entry.",
      "items": {
        "$ref": "#/$defs/Identity"
      }
    },
    "verdict": {
      "type": "string",
      "description": "The verdict for the entry.",
      "enum": [
        "allowed",
        "blocked"
      ]
    }
  }
}