{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-catalyst-center/json-schema/cisco-catalyst-center-network-device-trend-request-schema.json",
  "title": "NetworkDeviceTrendRequest",
  "description": "NetworkDeviceTrendRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-catalyst-center-network-devices-api-openapi.yml#/components/schemas/NetworkDeviceTrendRequest",
  "required": [
    "trendIntervalInMinutes"
  ],
  "type": "object",
  "properties": {
    "startTime": {
      "$ref": "#/$defs/startTime"
    },
    "endTime": {
      "$ref": "#/$defs/endTime"
    },
    "trendIntervalInMinutes": {
      "$ref": "#/$defs/TrendIntervalInMinutes"
    },
    "groupBy": {
      "$ref": "#/$defs/NetworkDeviceTrendGroupBy"
    },
    "filters": {
      "$ref": "#/$defs/NetworkDeviceTrendFilters"
    },
    "attributes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NetworkDeviceTrendAttribute"
      }
    },
    "aggregateAttributes": {
      "$ref": "#/$defs/NetworkDeviceTrendAggregateAttributes"
    },
    "page": {
      "$ref": "#/$defs/TrendPaginationRequest"
    }
  },
  "$defs": {
    "Function": {
      "type": "string",
      "description": "The name of the aggregate function",
      "enum": [
        "min",
        "max",
        "avg",
        "count",
        "latest",
        "sum",
        "distinct"
      ]
    },
    "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"
      ]
    },
    "NetworkDeviceTrendAggregateAttribute": {
      "type": "object",
      "properties": {
        "name": {
          "$ref": "#/$defs/NetworkDeviceTrendAggregateFields"
        },
        "function": {
          "$ref": "#/$defs/Function"
        }
      },
      "description": "Attribute on which the aggregate function should be applied while querying the data."
    },
    "NetworkDeviceTrendAggregateAttributes": {
      "type": "array",
      "description": "List of Attributes on which the aggregate function should be applied while querying the data.",
      "items": {
        "$ref": "#/$defs/NetworkDeviceTrendAggregateAttribute"
      }
    },
    "NetworkDeviceTrendAggregateFields": {
      "type": "string",
      "description": "Field name on which the aggregate function should be applied while querying the data.",
      "enum": [
        "overallHealthScore",
        "cpuUtilization",
        "memoryUtilization",
        "temperature",
        "inputDiscards",
        "outputDiscards",
        "inputErrors",
        "outputErrors",
        "inputUtilizationPercentage",
        "outputUtilizationPercentage",
        "inputRate",
        "outRate",
        "powerBudget",
        "usedPower",
        "interfacePowerMax",
        "numPorts",
        "usedPorts",
        "freePorts",
        "totalPower",
        "reservedPower",
        "allocatedPower",
        "switchAvailablePower",
        "consumedPowerSystem",
        "consumedPowerPoe",
        "switchCount",
        "powerSupplyCount",
        "monitoredApCount",
        "clientCount",
        "wlcApLicenseInUse",
        "wlcApLicenseAvailable",
        "wlcApLicenseDnaAdvantageInUse",
        "wlcApLicenseDnaEssentialsInUse",
        "wlcApLicenseCiscoNetworkingAdvantageInUse",
        "wlcApLicenseCiscoNetworkingEssentialsInUse",
        "radioTrafficUtilization",
        "overallFabricScore",
        "fabricTransitScore",
        "fabricSiteScore",
        "fabricVnScore",
        "fabsiteFcpScore",
        "fabsiteInfraScore",
        "fabsiteFsconnScore",
        "vnExitScore",
        "vnFcpScore",
        "vnStatusScore",
        "vnServiceScore",
        "transitControlPlaneScore",
        "transitServicesScore",
        "tcpConnScore",
        "bgpBgpSiteScore",
        "vniStatusScore",
        "pubsubTransitConnScore",
        "bgpPeerInfraVnScore",
        "internetAvailScore",
        "bgpEvpnScore",
        "lispTransitConnScore",
        "ctsEnvDataDownloadScore",
        "pubsubInfraVnScore",
        "peerScore",
        "bgpPeerScore",
        "remoteInternetAvailScore",
        "bgpTcpScore",
        "pubsubSessionScore",
        "aaaStatusScore",
        "lispCpConnScore",
        "bgpPubsubSiteScore",
        "mcastScore",
        "portChannelScore"
      ]
    },
    "NetworkDeviceTrendAttribute": {
      "type": "string",
      "description": "Network device Trend attributes details",
      "enum": [
        "deviceName",
        "cpuName",
        "managementIpAddress",
        "siteHierarchy",
        "deviceRole",
        "fabricRole",
        "fabricSiteName",
        "transitFabrics",
        "l2Vns",
        "l3Vns",
        "fabricSiteId",
        "networkProtocol",
        "reachability",
        "overallHealthScore",
        "cpuUtilization",
        "avgCpuUtilization",
        "memoryUtilization",
        "operStatus",
        "temperature",
        "inputDiscards",
        "outputDiscards",
        "inputErrors",
        "outputErrors",
        "inputUtilizationPercentage",
        "outputUtilizationPercentage",
        "inputRate",
        "outRate",
        "powerBudget",
        "usedPower",
        "remainingPower",
        "powerUsagePercentage",
        "interfacePowerMax",
        "numPorts",
        "usedPorts",
        "freePorts",
        "totalPower",
        "reservedPower",
        "allocatedPower",
        "switchAvailablePower",
        "consumedPowerSystem",
        "consumedPowerPoe",
        "powerStackMode",
        "powerStackName",
        "powerStackTopology",
        "switchCount",
        "powerSupplyCount",
        "monitoredApCount",
        "clientCount",
        "wlcApLicenseInUse",
        "wlcApLicenseAvailable",
        "wlcApLicenseDnaAdvantageInUse",
        "wlcApLicenseDnaEssentialsInUse",
        "wlcApLicenseCiscoNetworkingAdvantageInUse",
        "wlcApLicenseCiscoNetworkingEssentialsInUse",
        "apUpDownStatus",
        "connectedWlcUuid",
        "connectedWlcName",
        "powerAllocationLoad",
        "channel",
        "radioBand",
        "channelWidth",
        "channelNumbers",
        "txPower",
        "radioMode",
        "radioTrafficUtilization",
        "channelUtilization",
        "ethernetUtilization",
        "radioInterference",
        "radioClientCount",
        "radioTxUtilization",
        "radioRxUtilization",
        "txRetries",
        "txRetryPacket",
        "txPackets",
        "radioNoise",
        "radioAirQuality",
        "txPowerUnit",
        "operState",
        "txDataFrames",
        "totalManagementFrames",
        "totalMulticastFrames",
        "txErrorFrames",
        "rxErrorFrames",
        "ssid",
        "packetCount",
        "txDrops",
        "voiceLatencyAx",
        "voiceLatencyNonax",
        "videoLatencyAx",
        "videoLatencyNonax",
        "BestEffortLatencyAx",
        "BestEffortLatencyNonax",
        "BackgroundLatencyAx",
        "BackgroundLatencyNonax",
        "overallLatencyAx",
        "overallLatencyNonax",
        "voiceAteAx",
        "voiceAteNonax",
        "videoAteAx",
        "videoAteNonax",
        "BestEffortAteAx",
        "BestEffortAteNonax",
        "BackgroundAteAx",
        "BackgroundAteNonax",
        "overallAteAx",
        "overallAteNonax",
        "pdPowerConsumed",
        "pdClassSignal",
        "powerAdminMax",
        "poeAdminStatus",
        "poeOperStatus",
        "policingPoeEnabled",
        "fourPairEnabled",
        "connectedSwitch",
        "interfaceName",
        "maxPowerDrawn",
        "poeOperPriority",
        "fastPoeEnabled",
        "perpetualPoeEnabled",
        "upoePlusEnabled",
        "ethernetTxUtilization",
        "ethernetRxUtilization",
        "ethernetTotalUtilization",
        "txErrorsAbs",
        "rxErrorsAbs",
        "utilizationAbs",
        "txErrors",
        "rxErrors",
        "txRate",
        "rxRate",
        "totalRate",
        "apMode",
        "apPowerMode",
        "apPoePowerMode",
        "apPowerType",
        "ieeeCompliant",
        "connectedSwitchName",
        "connectedSwitchPort",
        "localClientCount",
        "foreignClientCount",
        "anchorClientCount",
        "idleClientCount",
        "interfaceOperStatus",
        "interfaceDescription",
        "chassisId",
        "moduleId",
        "pdClassSpare",
        "pdDeviceType",
        "pdDeviceModel",
        "pdPowerRemaining",
        "pdPowerNegotiationUsed",
        "pdConnectedDeviceList",
        "pdLocation",
        "pdDeviceName",
        "connectedSwitchId",
        "connectedSwitchType",
        "fabricRole",
        "transitFabrics",
        "fabricSiteName",
        "l2Vns",
        "fabricSiteId",
        "networkProtocol",
        "l3Vns",
        "overallFabricScore",
        "tcpConnStatus",
        "bgpBgpSiteStatus",
        "vniStatusStatus",
        "pubsubTransitConnStatus",
        "bgpPeerInfraVnStatus",
        "internetAvailStatus",
        "bgpEvpnStatus",
        "lispTransitConnStatus",
        "ctsEnvDataDownloadStatus",
        "pubsubInfraVnStatus",
        "peerStatus",
        "bgpPeerStatus",
        "remoteInternetAvailStatus",
        "bgpTcpStatus",
        "pubsubSessionStatus",
        "aaaStatusStatus",
        "lispCpConnStatus",
        "bgpPubsubSiteStatus",
        "mcastStatus",
        "portChannelStatus",
        "fabricSessionName",
        "fabricDestIp",
        "fabricDestName",
        "fabricReachabilitySessionStatus",
        "fabricDestUUid",
        "vnName",
        "fabricAfType"
      ]
    },
    "NetworkDeviceTrendFilter": {
      "type": "object",
      "properties": {
        "key": {
          "$ref": "#/$defs/NetworkDeviceTrendAttribute"
        },
        "operator": {
          "$ref": "#/$defs/Operator"
        },
        "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/NetworkDeviceTrendFilter"
          }
        }
      },
      "description": "In case of single filter, please use `key`, `operator` and `value` combination. If multiple filters need to be applied using a logical   operation, please use `logicalOperator` and populate the list of 'filters' with a   combination of FilterObj. Filters can be nested to build complex   queries.\n"
    },
    "NetworkDeviceTrendFilters": {
      "type": "array",
      "description": "When using filters, the request must contain only fields from the same grouping (across all request fields)\n | Group | Valid Fields |\n  | --- | --- |\n  | HealthScore | deviceRole, transitFabrics, anchorClientCount, foreignClientCount, fabricRole, managementIpAddress, deviceName, fabricSiteId, avgCpuUtilization, connectedWlcUuid, idleClientCount, localClientCount, monitoredApCount, siteHierarchy, memoryUtilization, connectedWlcName, reachability, l2Vns, overallHealthScore, clientCount, l3Vns |\n  | PoE Port | maxPowerDrawn, interfaceDescription, pdClassSignal, powerAdminMax, upoePlusEnabled, policingPoeEnabled, poeModule, pdConnectedDeviceList, pdLocation, pdPowerNegotiationUsed, chassisId, interfaceName, moduleId, connectedSwitchId, interfaceOperStatus, pdPowerConsumed, fastPoeEnabled, poeOperPriority, connectedSwitch, perpetualPoeEnabled, pdClassSpare, pdDeviceType, poeAdminStatus, pdDeviceModel, pdPowerRemaining, poeOperStatus, connectedSwitchType, pdDeviceName, fourPairEnabled |\n  | PoE Module | remainingPower, allocatedPower, powerStackMode, interfacePowerMax, reservedPower, switchCount, poePowerStackName, consumedPowerPoe, poeModule, usedPower, freePorts, switchAvailablePower, powerStackTopology, usedPorts, powerBudget, powerUsagePercentage, numPorts, moduleId, totalPower, powerSupplyCount, consumedPowerSystem |\n  | AP Link Errors | ethernetRxUtilization, utilizationAbs, txErrors, txErrorsAbs, totalRate, txRate, rxErrorsAbs, rxRate, ethernetTxUtilization, rxErrors, ethernetUtilization, ethernetTotalUtilization |\n  | Session Reachability | fabricReachabilitySessionStatus, fabricDestUUid, fabricDestIp, fabricSessionName, vnName, fabricAfType, fabricDestName |\n  | Interface Stats | inputErrors, outputErrors, inputRate, outRate, interfaceName, outputUtilizationPercentage, outputDiscards, inputDiscards, inputUtilizationPercentage |\n  | Interface Availability | availability |\n  | Temperature | temperatureSensorName, temperature |\n  | ApUpDown | apUpDownStatus |\n  | WLC Stats | cpuUtilization, cpuName |\n  | WLC Ap License | wlcApLicenseInUse, wlcApiLicenseAvailable, wlcApLicenseDnaAdvantageInUse, wlcApLicenseDnaEssentialsInUse, wlcApLicenseCiscoNetworkingAdvantageInUse, wlcApLicenseCiscoNetworkingEssentialsInUse |\n  | Radio Metrics | channelUtilization, videoAteAx, BestEffortAteAx, packetCount, totalMulticastFrames, channel, radioClientCount, voiceLatencyNonax, radioId, radioAirQuality, BackgroundAteAx, txDrops, BestEffortAteNonax, ssid, BackgroundLatencyAx, BackgroundLatencyNonax, txPower, voiceAteNonax, videoLatencyNonax, radioMode, BestEffortLatencyNonax, voiceAteAx, BackgroundAteNonax, channelNumbers, txDataFrames, txRetries, voiceLatencyAx, videoLatencyAx, totalManagementFrames, txPowerUnit, radioRxUtilization, rxErrorFrames, txPackets, txErrorFrames, txRetryPacket, radioTxUtilization, BestEffortLatencyAx, radioNoise, overallAteAx, radioInterference, radioBand, operState, channelWidth, radioTrafficUtilization, videoAteNonax, overallAteNonax",
      "items": {
        "$ref": "#/$defs/NetworkDeviceTrendFilter"
      }
    },
    "NetworkDeviceTrendGroupBy": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "List of field names to group by.",
        "enum": [
          "cpuName",
          "radioId",
          "radioBand",
          "temperatureSensorName",
          "poeModule",
          "poePowerStackName",
          "fabricSessionName",
          "fabricDestIp",
          "fabricDestName",
          "fabricDestUUid",
          "vnName",
          "fabricAfType"
        ]
      }
    },
    "Operator": {
      "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",
        "lt",
        "gt",
        "lte",
        "gte",
        "eq",
        "notIn",
        "like"
      ]
    },
    "TrendIntervalInMinutes": {
      "type": "integer",
      "description": "the trend data time interval in minutes. This is\na mandatory property. The possible values are **5, 10, 30,\n60**. When the start and end Time range is greater than 1 day, the\nexpected interval value is 60 minutes. The default polling or data collection interval for the switches and router family devices is 10minutes. So even\n5 minutes given in the input, the data will be available for 10 minutes once.\n",
      "enum": [
        5,
        10,
        30,
        60
      ]
    },
    "TrendPaginationRequest": {
      "type": "object",
      "properties": {
        "limit": {
          "type": "integer",
          "description": "The reference to the limit applied in the Pagination Request."
        },
        "offset": {
          "type": "integer",
          "description": "The reference to the record offset applied in the Pagination Request."
        },
        "timestampOrder": {
          "type": "string",
          "description": "The sort order of the timestamp can be either ascending or descending",
          "enum": [
            "asc",
            "desc"
          ]
        }
      },
      "description": "The reference for Pagination trend request.      "
    },
    "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.",
      "format": "int64"
    },
    "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.",
      "format": "int64"
    }
  }
}