{"type":"api","title":"Get Post Aggregation App Data By Query Monitoring Qos 3504","meta":{"id":"/apps/pubhub/media/cisco-catalyst-sd-wan-api-guide-20-18/1c4807bcb76af36988ebb37dc2e455b1787a155e/d2f02ba2-fd0d-3a26-bcc5-feafc8f24d17","info":{"title":"Monitoring and Troubleshooting","description":"Includes API operations for the following:\n- Real-time monitoring\n- Accessing statistics APIs and statistics bulk APIs\n- Retrieving device state\n- Managing alarms and events\n","contact":{"email":"vmanage@cisco.com"},"version":"20.18 - 2025-08-15"},"openapi":"3.1.0","servers":[{"url":"/dataservice"}]},"spec":{"tags":["Monitoring - QoS"],"description":"Get aggregated data based on input query and filters. The data can be filtered on time and other unique parameters based upon necessity and intended usage","operationId":"getPostAggregationAppDataByQuery_MonitoringQos_3504","requestBody":{"description":"Stats query string","content":{"application/json":{"schema":{"type":"object"},"examples":{"Stats query string":{"description":"Stats query string","value":{"query":{"condition":"AND","rules":[{"value":["24"],"field":"entry_time","type":"date","operator":"last_n_hours"},{"value":["172.16.255.16"],"field":"vdevice_name","type":"string","operator":"in"},{"value":["ge0/0"],"field":"interface","type":"number","operator":"in"}]},"aggregation":{"field":[{"property":"queue_name","sequence":1,"size":20}],"histogram":{"property":"entry_time","type":"hour","interval":6,"order":"asc"},"metrics":[{"property":"tx_bytes_in_kbps","type":"avg","order":"desc"},{"property":"drop_in_kbps","type":"avg"},{"property":"jitter","type":"avg"}],"sort":[{"property":"entry_time","type":"date","order":"desc"}]}}}}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"count":{"type":"integer","format":"int32","example":5},"entry_time":{"type":"string","example":"1674813600000"},"jitter":{"type":"integer","format":"int32","example":0},"latency":{"type":"integer","format":"int32","example":0},"local_color":{"type":"string","example":"3g"},"loss_percentage":{"type":"integer","format":"int32","example":0}},"$$ref":"#/components/schemas/QoSAggResp"}},"example":[{"entry_time":1678881600000,"count":72,"queue_name":"Queue1","drop_in_kbps":0,"jitter":0,"tx_bytes_in_kbps":0},{"entry_time":1678881600000,"count":72,"queue_name":"Queue2","drop_in_kbps":0,"jitter":0,"tx_bytes_in_kbps":0}]}}},"400":{"description":"Bad Request"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}},"method":"post","path":"/statistics/qos/app-agg/aggregation"}}