{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-catalyst-center/json-schema/cisco-catalyst-center-network-application-trend-response-schema.json",
  "title": "NetworkApplicationTrendResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-catalyst-center-networkapplications-api-openapi.yml#/components/schemas/NetworkApplicationTrendResponse",
  "type": "object",
  "properties": {
    "response": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NetworkApplicationsTrendGroupsResponse"
      }
    },
    "page": {
      "$ref": "#/$defs/NetworkApplicationPaginationTrend"
    },
    "version": {
      "type": "string",
      "description": "The version of the response"
    }
  },
  "$defs": {
    "NetworkApplicationAggregateAttributeResponse": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the requested aggregate attribute"
        },
        "function": {
          "type": "string",
          "description": "Aggregate function requested for the attribute"
        },
        "value": {
          "type": "object",
          "description": "This is the aggregate value of the attribute after applying the function on the dataset"
        }
      }
    },
    "NetworkApplicationAggregateAttributesResponse": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NetworkApplicationAggregateAttributeResponse"
      }
    },
    "NetworkApplicationAnalyticsAttributeResponse": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the attribute requested for analytics API."
        },
        "value": {
          "type": "object",
          "description": "This is the value of the attribute requested for analytics API."
        }
      }
    },
    "NetworkApplicationAnalyticsAttributesResponse": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NetworkApplicationAnalyticsAttributeResponse"
      }
    },
    "NetworkApplicationPaginationTrend": {
      "type": "object",
      "properties": {
        "limit": {
          "maximum": 500,
          "minimum": 1,
          "type": "integer",
          "description": "Number of records to fetch in a page",
          "default": 100
        },
        "cursor": {
          "type": "string",
          "description": "It's an opaque string field that indicates the next record in the requested collection. If no records remain, the API returns a response with a count of zero. The default value is an empty string, and the initial value must be an empty string. The cursor value is populated by the API in the response page block. If the user wants more records, the cursor in the subsequent request must be updated with the value from the previous response.",
          "default": ""
        },
        "count": {
          "type": "integer",
          "description": "Number of records returned after applying applicable filtering. Field is ignored for request and updated by API in the response"
        },
        "timeSortOrder": {
          "type": "string",
          "description": "Sort order. 'asc' for ascending and 'desc' for descending",
          "enum": [
            "asc",
            "desc"
          ]
        }
      }
    },
    "NetworkApplicationsGroupResponse": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "This is the group key. Unique value to identify the group. It is concatenation of groupBy attributes"
        },
        "attributes": {
          "$ref": "#/$defs/NetworkApplicationAnalyticsAttributeResponse"
        },
        "aggregateAttributes": {
          "$ref": "#/$defs/NetworkApplicationAggregateAttributesResponse"
        }
      }
    },
    "NetworkApplicationsTrendGroupsResponse": {
      "type": "object",
      "properties": {
        "timestamp": {
          "type": "integer",
          "description": "For trend API timestamp is the default groupBy attribute.",
          "format": "int64"
        },
        "attributes": {
          "$ref": "#/$defs/NetworkApplicationAnalyticsAttributesResponse"
        },
        "aggregateAttributes": {
          "$ref": "#/$defs/NetworkApplicationAggregateAttributesResponse"
        },
        "groups": {
          "type": "array",
          "description": "Additional groups and their respective attributes are included under each group. The attributes belonging to each group are appended to the attributes list.\n",
          "items": {
            "$ref": "#/$defs/NetworkApplicationsGroupResponse"
          }
        }
      },
      "description": "The aggregate trend response includes timestamp, attributes, aggregateAttributes, and group attributes. The attributes aggregateAttributes and groups are mutually exclusive. If a user requests trends without groupBy attributes, the response includes timestamp, attributes, and aggregateAttributes. However, if a user requests trends with groupBy attributes, the response includes timestamp, and the groups array contains attributes and aggregatedAttributes for each array element.\n"
    }
  }
}