{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-catalyst-center/json-schema/cisco-catalyst-center-events-request-schema.json",
  "title": "EventsRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-catalyst-center-assuranceevents-api-openapi.yml#/components/schemas/EventsRequest",
  "allOf": [
    {
      "$ref": "#/$defs/EventsCountRequest"
    },
    {
      "type": "object",
      "properties": {
        "views": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EventViews"
          }
        },
        "attributes": {
          "type": "array",
          "description": "List of attributes that needs to be included in the response. If this parameter is not provided, then all attributes would be part of the response.",
          "items": {
            "type": "string",
            "enum": [
              "affectedClients",
              "apMac",
              "apRadioOperationState",
              "apRole",
              "apSwitchId",
              "apSwitchName",
              "assocRssi",
              "assocSnr",
              "auditSessionId",
              "authServerIp",
              "bssid",
              "candidateAPs",
              "childEvents",
              "clientMac",
              "connectedInterfaceName",
              "currentRadioPowerLevel",
              "details",
              "deviceFamily",
              "dhcpServerIp",
              "duid",
              "eventStatus",
              "facility",
              "failureCategory",
              "failureIpAddress",
              "frequency",
              "id",
              "identifier",
              "invalidIeAPs",
              "ipv4",
              "ipv6",
              "isPrivateMac",
              "lastApDisconnectReason",
              "lastApResetType",
              "managementIpAddress",
              "messageType",
              "missingResponseAPs",
              "mnemonic",
              "name",
              "networkDeviceId",
              "networkDeviceName",
              "newRadioChannelList",
              "newRadioChannelWidth",
              "oldRadioChannelList",
              "oldRadioChannelWidth",
              "previousRadioPowerLevel",
              "radioChannelSlot",
              "radioChannelUtilization",
              "radioInterference",
              "radioNoise",
              "reasonDescription",
              "replacedDeviceSerialNumber",
              "replacingDeviceSerialNumber",
              "resultStatus",
              "roamType",
              "severity",
              "siteHierarchy",
              "siteHierarchyId",
              "ssid",
              "subReasonDescription",
              "switchNumber",
              "timestamp",
              "udnId",
              "udnName",
              "username",
              "vlanId",
              "wirelessClientEventEndTime",
              "wirelessClientEventStartTime",
              "wlcId",
              "wlcName"
            ]
          }
        },
        "page": {
          "$ref": "#/$defs/EventsPagination"
        }
      }
    }
  ],
  "$defs": {
    "EventSortBy": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Field name by which sort is requested.\n\n**Network Devices**: name, messageType, severity, networkDeviceId, networkDeviceName, managementIpAddress, timestamp\n\n**Unified AP**: name, messageType, severity, networkDeviceId, networkDeviceName, managementIpAddress, apMac, wlcId, wlcName, frequency, timestamp\n\n**Wired Client**: name, messageType, severity, ipv4, ipv6, identifier, connectedDeviceId, connectedDeviceName, connectedDeviceIp, connectedInterfaceName, vlanId, clientMac, timestamp\n\n**Wireless Client**: name, messageType, ipv4, ipv6, identifier, clientMac, apId, apName, apMac, wlcId, wlcName, frequency, ssid, username, dhcpServerIp, timestamp\n"
        },
        "order": {
          "type": "string",
          "description": "Sort order. `asc` for ascending and `desc` for descending",
          "enum": [
            "asc",
            "desc"
          ]
        }
      },
      "description": "List of field names and corresponding order used to sort   the records."
    },
    "EventViews": {
      "type": "string",
      "description": "The specific view being requested. This is an optional parameter which can be passed to get one or more of the specific events data. If this is not provided, then it will default to `basic` view.\n\n### Response data proviced by each view:  \n\n1. `basic`:\n`[id, name, timestamp, details, messageType, siteHierarchyId, siteHierarchy, deviceFamily, networkDeviceId, networkDeviceName, managementIpAddress]`\n\n2. `network`:\n`[id, name, severity, facility, mnemonic, eventStatus, timestamp, details, messageType, siteHierarchyId, siteHierarchy, deviceFamily, networkDeviceId, networkDeviceName, managementIpAddress, replacedDeviceSerialNumber, replacingDeviceSerialNumber, switchNumber]`\n\n3. `ap`:\n`[id, name, eventStatus, timestamp, details, messageType, siteHierarchyId, siteHierarchy, deviceFamily, networkDeviceId, networkDeviceName, managementIpAddress, apMac, wlcName, frequency, apSwitchId, apSwitchName, wlcId, reasonDescription, lastApDisconnectReason, lastApResetType, apRadioOperationState, currentRadioPowerLevel, previousRadioPowerLevel, newRadioChannelList, newRadioChannelWidth, oldRadioChannelList, oldRadioChannelWidth, radioNoise, radioInterference, radioChannelUtilization, affectedClients]`\n\n4. `wiredClient`:\n`[id, name, severity, facility, mnemonic, eventStatus, timestamp, details, messageType, siteHierarchyId, siteHierarchy, deviceFamily, networkDeviceId, networkDeviceName, managementIpAddress, identifier, clientMac, connectedInterfaceName, ipv4, ipv6, vlanId, auditSessionId, reasonDescription]`\n\n5. `wirelessClient`:\n`[id, name, timestamp, details, messageType, siteHierarchyId, siteHierarchy, deviceFamily, networkDeviceId, networkDeviceName, identifier, clientMac, wirelessClientEventStartTime, wirelessClientEventEndTime, radioChannelSlot, isPrivateMac, vlanId, authServerIp, apRole, assocRssi, assocSnr, udnName, udnId, duid, failureIpAddress, roamType, subReasonDescription, invalidIeAPs, candidateAPs, missingResponseAPs, apMac, wlcName, wlcId, ssid, username, frequency, resultStatus, failureCategory, dhcpServerIp, ipv4, ipv6, reasonDescription, childEvents]`\n",
      "default": "basic",
      "enum": [
        "basic",
        "network",
        "ap",
        "wiredClient",
        "wirelessClient"
      ]
    },
    "EventsCountRequest": {
      "required": [
        "deviceFamily"
      ],
      "type": "object",
      "properties": {
        "deviceFamily": {
          "minItems": 1,
          "type": "array",
          "description": "Device family. Please note that multiple families across network device type and client type is not allowed. For example, choosing `Routers` along with `Wireless Client` or `Unified AP` is not supported.",
          "items": {
            "type": "string",
            "enum": [
              "Switches and Hubs",
              "Routers",
              "Wireless Controller",
              "Third Party Device",
              "Unified AP",
              "Wired Client",
              "Wireless Client"
            ]
          }
        },
        "startTime": {
          "type": "integer",
          "description": "Start time from which the API queries the dataset related to the resource. It must be specified in terms of milliseconds since UNIX epoch. Value is inclusive.\n\nQuerying of data spanning more than 7 days is not allowed, so difference between `startTime` and `endTime` must not be more than that.\n\nIf `startTime` is not provided, API will default to current time minus 24 hours.\n",
          "format": "int64"
        },
        "endTime": {
          "type": "integer",
          "description": "End time to which the API queries the dataset related to the resource. It must be specified in terms of milliseconds since UNIX epoch. Value is inclusive.\n\nQuerying of data spanning more than 7 days is not allowed, so difference between `startTime` and `endTime` must not be more than that.\n\nIf `endTime` is not provided, API will default to current time.\n",
          "format": "int64"
        },
        "filters": {
          "type": "array",
          "description": "Array of filters to be applied.",
          "items": {
            "$ref": "#/$defs/EventsFilterObj"
          }
        }
      }
    },
    "EventsFilterObj": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "Field name on which the filter should be applied when querying the data. The possible values for `key` depends on the `deviceFamily` that is being queried. Following tables explain the same.\n\nKeys applicable to all device families:\n\n| Key                      | Type    | Description                                 |\n| ------------------------ | ------- | ------------------------------------------- |\n| name                     | string  | Event name                                  |\n| siteHierarchyId          | string  | Slash separated UUIDs for the site hierarchy. Example: `/a36a9c63-b86b-4348-b250-ddba04d21472/471df5d4-ccbd-4796-88a3-018eefe907d0/27db410b-7baf-4b6a-b4f4-a14a8dd78218/` |\n| messageType              | string  | Message type. Possible values are `Syslog`, `Trap`, `Device`, `Device Controller`, `ISE`, `TDL` |\n\nKeys applicable to network device related families (except `Unifed AP`):\n\n| Key                      | Type    | Description                                 | \n| ------------------------ | ------- | ------------------------------------------- |\n| severity                 | integer | Severity of the event (0 to 6)              |\n| networkDeviceId          | string  | UUID of the network device                  |\n| networkDeviceName        | string  | Name of the network device. It should be as per device inventory |\n| managementIpAddress      | string  | Management IP address of the network device |\n| details                  | string  | Details of the network device               |\n\nKeys applicable to `Unified AP` family:\n\n| Key                      | Type    | Description                                 | \n| ------------------------ | ------- | ------------------------------------------- |\n| networkDeviceId          | string  | UUID of the access point                    |\n| networkDeviceName        | string  | Name of the access point. It should be as per device inventory |\n| managementIpAddress      | string  | Management IP address of the network device |\n| apMac                    | string  | MAC address of the access point             |\n| wlcId                    | string  | UUID of the Wireless controller             |\n| wlcName                  | string  | Wireless controller name                    |\n| frequency                | string  | Band (e.g. 2.4, 5)                          |\n| reasonDescription        | string  | Reason for AP event                         |\n\nKeys applicable to `Wired Client` family:\n\n| Key                      | Type    | Description                                 | \n| ------------------------ | ------- | ------------------------------------------- |\n| severity                 | integer | Severity of the event (0 to 6)              |\n| clientMac                | string  | MAC address of wired client                 |\n| ipv4                     | ip addr | IPv4 address of the client                  |\n| ipv6                     | ip addr | IPv6 address of the client                  |\n| identifier               | string  | MAC address or username                     |\n| connectedDeviceId        | string  | UUID of the connected switch                | \n| connectedDeviceName      | string  | Name of the connected switch                | \n| connectedDeviceIp        | string  | IP address of the connected switch          | \n| connectedInterfaceName   | string  | Name of the port/interface where client is connected |\n| vlanId                   | string  | VLAN id of wired client                     |\n| details                  | string  | Details of the wired client                 |\n\nKeys applicable to `Wireless Client` family:\n\n| Key                      | Type    | Description                                 | \n| ------------------------ | ------- | ------------------------------------------- |\n| clientMac                | string  | MAC Address of Wireless Client              |\n| ipv4                     | ip addr | IPv4 address of the client                  |\n| ipv6                     | ip addr | IPv6 address of the client                  |\n| identifier               | string  | MAC address or username                     |\n| apId                     | string  | UUID of the access point                    |\n| apMac                    | string  | MAC address of the access point             |\n| apName                   | string  | Connected AP name of the wireless client    |\n| wlcId                    | string  | Wireless controller UUID                    |\n| wlcName                  | string  | Wireless controller name                    |\n| frequency                | string  | Radio band (e.g. 2.4, 5)                    |\n| ssid                     | string  | SSID of connected wireless client           |\n| username                 | string  | User name of wireless client                |\n| dhcpServerIp             | ip addr | DHCP server IP of wireless client           |\n| reasonCode               | string  | Failure reason code                         |\n",
          "enum": [
            "apId",
            "apMac",
            "apName",
            "clientMac",
            "connectedDeviceId",
            "connectedDeviceIp",
            "connectedDeviceName",
            "connectedInterfaceName",
            "details",
            "dhcpServerIp",
            "frequency",
            "identifier",
            "ipv4",
            "ipv6",
            "managementIpAddress",
            "messageType",
            "name",
            "networkDeviceId",
            "networkDeviceName",
            "reasonCode",
            "reasonDescription",
            "severity",
            "siteHierarchyId",
            "ssid",
            "username",
            "vlanId",
            "wlcId",
            "wlcName"
          ]
        },
        "operator": {
          "$ref": "#/$defs/EventsOperator"
        },
        "logicalOperator": {
          "$ref": "#/$defs/LogicalOperator"
        },
        "value": {
          "type": "object",
          "description": "Field value(s) to filter the data set. Array of values is used for   \"in\" or \"out\" operator. Values will be of whatever type the   specific field being filtered is defined with.\n\nFor other operators, filter value is of whatever type the specific   field being filtered is defined with.\n\nIn the case of an \"and\" or \"or\" operator, this values array will be   ignored, and the values arrays in each of the *nested filters*   will be used.\n"
        },
        "filters": {
          "type": "array",
          "description": "Nested array of filters in case of AND/OR based filters. Only one   level of nesting will be supported.\n\nStructure of nested filter is the same as parent with all operators   supported except AND or OR.\n",
          "items": {
            "$ref": "#/$defs/EventsFilterObj"
          }
        }
      }
    },
    "EventsOperator": {
      "type": "string",
      "description": "Type of filter operator to use for querying data in and out operator takes multiple values and applies the filters",
      "enum": [
        "in",
        "neq",
        "eq",
        "notIn",
        "like"
      ]
    },
    "EventsPagination": {
      "type": "object",
      "properties": {
        "limit": {
          "maximum": 20,
          "minimum": 1,
          "type": "integer",
          "description": "Number of records to fetch in a page",
          "default": 10
        },
        "offset": {
          "minimum": 1,
          "type": "integer",
          "description": "Starting offset of data to fetch and returned",
          "default": 1
        },
        "count": {
          "type": "integer",
          "description": "Total number of records related to the resource after applying applicable filtering"
        },
        "sortBy": {
          "type": "array",
          "description": "Records are sorted based on the fields specified in the   array.",
          "items": {
            "$ref": "#/$defs/EventSortBy"
          }
        }
      }
    },
    "LogicalOperator": {
      "type": "string",
      "description": "Operator to use when attempting to apply a logical conjunction of more   than 1 filter\n\nLogical operations include: 'and', 'or'.\n",
      "enum": [
        "and",
        "or"
      ]
    }
  }
}