{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-catalyst-center/json-schema/cisco-catalyst-center-interface-trend-response-list-schema.json",
  "title": "InterfaceTrendResponseList",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-catalyst-center-interfacelist-api-openapi.yml#/components/schemas/InterfaceTrendResponseList",
  "type": "object",
  "properties": {
    "response": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InterfaceTrendResponse"
      }
    },
    "timestampOrder": {
      "type": "string",
      "description": "The sort order of the timestamp can be either ascending or descending",
      "enum": [
        "asc",
        "desc"
      ]
    }
  },
  "$defs": {
    "Function": {
      "type": "string",
      "description": "The name of the aggregate function",
      "enum": [
        "min",
        "max",
        "avg",
        "count",
        "latest",
        "sum",
        "distinct"
      ]
    },
    "InterfaceTrendAggregateResponse": {
      "type": "object",
      "properties": {
        "name": {
          "$ref": "#/$defs/InterfacesTrendAggregateName"
        },
        "function": {
          "$ref": "#/$defs/Function"
        },
        "value": {
          "type": "number",
          "description": "The value for the attribute field in the given time rang"
        }
      }
    },
    "InterfaceTrendAggregatesResponse": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InterfaceTrendAggregateResponse"
      }
    },
    "InterfaceTrendAttributesResponse": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InterfaceTrendAttributesResponse_inner"
      }
    },
    "InterfaceTrendAttributesResponse_inner": {
      "type": "object",
      "properties": {
        "name": {
          "$ref": "#/$defs/InterfacesTrendAttributes"
        },
        "value": {
          "type": "object",
          "description": "Value will always be latest within the interval"
        }
      }
    },
    "InterfaceTrendResponse": {
      "type": "object",
      "properties": {
        "timestamp": {
          "type": "integer",
          "format": "int64"
        },
        "attributes": {
          "$ref": "#/$defs/InterfaceTrendAttributesResponse"
        },
        "aggregateAttributes": {
          "$ref": "#/$defs/InterfaceTrendAggregatesResponse"
        }
      }
    },
    "InterfacesTrendAggregateName": {
      "type": "string",
      "description": "Field name on which the aggregate function should be applied when querying the data. The supported field details are available in the enum definition. The following are the supported functions for each field \n\n  | Field | Functions Supported |\n  | --- | --- |\n  | `pdPowerBudgetInWatt` | min,max,avg,latest,sum |\n  | `pdPowerConsumed` | min,max,avg,latest,sum |\n  | `pdPowerConsumedPercent` | min,max,avg,latest |\n  | `pdPowerRemaining` | min,max,avg,latest,sum |\n  | `pdPowerAdminMaxInWatt` | min,max,avg,latest,sum |\n  | `interfacePowerMax` | min,max,avg,latest,sum |\n  | `rxDiscards` | min,max,avg,latest,sum |\n  | `rxError` | min,max,avg,latest,sum |\n  | `rxRate` | min,max,avg,latest,sum |\n  | `rxUtilization` | min,max,avg,latest,sum |\n  | `txDiscards` | min,max,avg,latest,sum |\n  | `txError` | min,max,avg,latest,sum |\n  | `txRate` | min,max,avg,latest,sum |\n  | `txUtilization` | min,max,avg,latest,sum |",
      "enum": [
        "pdPowerBudgetInWatt",
        "pdPowerConsumedInWatt",
        "pdPowerConsumedPercent",
        "pdPowerRemainingInWatt",
        "pdPowerAdminMaxInWatt",
        "interfacePowerMax",
        "rxDiscards",
        "rxError",
        "rxRate",
        "rxUtilization",
        "txDiscards",
        "txError",
        "txRate",
        "txUtilization"
      ]
    },
    "InterfacesTrendAttributes": {
      "type": "string",
      "description": "The interface trend attributes. The following fields have set potential values.\n\n  | Field | Functions Supported |\n  | --- | --- |\n  | `poeOperStatus` | OFF:POWER_DENY, OFF:PD_FAULTY, ON, OFF, OFF:ERROR_DISABLED  |\n  | `pdClassSignal` | NONE, UNKNOWN, CISCO, IEEE0, IEEE1, IEEE2, IEEE3, IEEE4, IEEE5, IEEE_UNKNOWN, IEEE6, IEEE7, IEEE8, MISMATCH |",
      "enum": [
        "name",
        "poeOperStatus",
        "pdPowerBudgetInWatt",
        "pdPowerBudgetRange",
        "pdClassSignal",
        "pdType",
        "ieeeCompliant",
        "siteHierarchyId",
        "siteHierarchy",
        "pdPowerConsumedInWatt",
        "pdPowerConsumedRange",
        "pdPowerConsumedPercent",
        "apPowerMode",
        "poeVersion",
        "connectedSwitchUuid",
        "connectedSwitchType",
        "fastPoEEnabled",
        "perpetualPoEEnabled",
        "ieeeCompliant",
        "upoePlusEnabled",
        "apPowerType",
        "fourPairEnabled",
        "apPowerSaveMode",
        "pdPowerRemaining",
        "powerAllocationLoadRange",
        "pdPowerAdminMaxInWatt",
        "poePoliceEnabled",
        "poeOperPriority",
        "rxDiscards",
        "rxError",
        "rxRate",
        "rxUtilization",
        "txDiscards",
        "txError",
        "txRate",
        "txUtilization"
      ]
    }
  }
}