{"type":"api","title":"Get Post Aggregation Data By Query 13","meta":{"id":"/apps/pubhub/media/sd-wan-api-20-16/58fb893fa751949ea20a40274e9ab219a20e19fa/e77267b5-7b4b-3f93-807c-c6d1c6b41343","info":{"title":"Cisco Catalyst SD-WAN Manager API","description":"The vManage API exposes the functionality of operations maintaining devices and the overlay network","contact":{"email":"vmanage@cisco.com"},"license":{"name":"Commercial License","url":"https://www.cisco.com/c/en/us/solutions/enterprise-networks/sd-wan/index.html"},"version":"2.0.0"},"openapi":"3.0.1","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":"getPostAggregationDataByQuery_13","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":["168"],"field":"entry_time","type":"date","operator":"last_n_hours"},{"value":["172.16.255.11"],"field":"vdevice_name","type":"string","operator":"in"},{"value":["ge0/0"],"field":"interface","type":"string","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"}]},"sort":[{"field":"entry_time","type":"date","order":"asc"}]}}}}}},"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":" [\n {\n \"entry_time\": 1678924800000,\n \"count\": 72,\n \"queue_name\": \"Queue4\",\n \"drop_in_kbps\": 0,\n \"tx_bytes_in_kbps\": 0\n },\n {\n \"entry_time\": 1678924800000,\n \"count\": 72,\n \"queue_name\": \"Queue5\",\n \"drop_in_kbps\": 0,\n \"tx_bytes_in_kbps\": 0\n },\n {\n \"entry_time\": 1678924800000,\n \"count\": 72,\n \"queue_name\": \"Queue6\",\n \"drop_in_kbps\": 0,\n \"tx_bytes_in_kbps\": 0\n }"}}},"400":{"description":"Bad Request"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}},"__originalOperationId":"getPostAggregationDataByQuery_13","method":"post","path":"/statistics/qos/aggregation"}}