{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-catalyst-center/json-schema/cisco-catalyst-center-thousand-eyes-test-results-trend-response-schema.json",
  "title": "ThousandEyesTestResultsTrendResponse",
  "description": "ThousandEyes test results trend",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-catalyst-center-thousandeyestestresults-api-openapi.yml#/components/schemas/ThousandEyesTestResultsTrendResponse",
  "type": "object",
  "properties": {
    "response": {
      "type": "array",
      "description": "List of ThousandEyes test results trend items",
      "items": {
        "$ref": "#/$defs/ThousandEyesTestResultsTrend"
      }
    },
    "page": {
      "$ref": "#/$defs/TimeBasedPagination"
    },
    "version": {
      "type": "string",
      "description": "Version of the response"
    }
  },
  "$defs": {
    "ThousandEyesTestResultsAttributeValuePair": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Attribute name"
        },
        "value": {
          "type": "object",
          "description": "This is the value of the attribute requested for trend analytics."
        }
      }
    },
    "ThousandEyesTestResultsTrend": {
      "type": "object",
      "properties": {
        "timestamp": {
          "type": "integer",
          "description": "For trend API timestamp is the default groupBy attribute.",
          "format": "int64"
        },
        "attributes": {
          "type": "array",
          "description": "List of trend attributes",
          "items": {
            "$ref": "#/$defs/ThousandEyesTestResultsAttributeValuePair"
          }
        }
      },
      "description": "The aggregate trend response includes timestamp and attributes."
    },
    "TimeBasedPagination": {
      "type": "object",
      "properties": {
        "limit": {
          "minimum": 1,
          "type": "integer",
          "description": "Number of records to fetch in a page"
        },
        "offset": {
          "minimum": 1,
          "type": "integer",
          "description": "Starting offset of data to fetch and returned",
          "default": 1
        },
        "timeSortOrder": {
          "type": "string",
          "description": "Sort order. `asc` for ascending and  `desc` for descending",
          "default": "asc",
          "enum": [
            "asc",
            "desc"
          ]
        },
        "count": {
          "type": "integer",
          "description": "Number of records returned after applying applicable filtering. Field is ignored for request and updated by API in the response"
        }
      }
    }
  }
}