{"type":"api","title":"Get Stats Raw Data 3","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 - Power Consumption Statistics"],"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":"getStatsRawData_3","parameters":[{"name":"page","in":"query","schema":{"type":"integer","format":"int32"}},{"name":"pageSize","in":"query","schema":{"type":"integer","format":"int32"}},{"name":"sortBy","in":"query","schema":{"type":"string"}},{"name":"sortOrder","in":"query","schema":{"type":"string","enum":["asc","ASC","Asc","desc","DESC","Desc"]}}],"requestBody":{"description":"Stats query string","content":{"application/json":{"schema":{"type":"object"},"examples":{"power consumption query":{"description":"power consumption query","value":{"query":{"condition":"AND","rules":[{"value":["12"],"field":"entry_time","type":"date","operator":"last_n_hours"},{"value":["172.16.255.15"],"field":"vdevice_name","type":"string","operator":"in"}]},"fields":["entry_time","count","power_usage","current_reading"],"sort":[{"field":"entry_time","type":"date","order":"asc"}]},"$$ref":"#/components/examples/PowerConsumption"}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"cost":{"type":"number","example":0.029},"count":{"type":"integer","format":"int32","example":1},"emission":{"type":"number","example":0.031},"entry_time":{"type":"integer","format":"int32","example":1717056000000},"power_usage":{"type":"number","example":0.19}},"$$ref":"#/components/schemas/PowerConsumptionRespData"}},"entryTimeList":{"type":"array","items":{"type":"integer","format":"int64"}},"header":{"type":"object","properties":{"chart":{"type":"object","properties":{"series":{"type":"array","items":{"type":"string"}},"title":{"type":"string"},"xAxis":{"type":"array","items":{"type":"string"}},"xAxisLabel":{"type":"string"},"yAxis":{"type":"array","items":{"type":"string"}},"yAxisLabel":{"type":"string"}},"$$ref":"#/components/schemas/ChartObject"},"columns":{"required":["dataType","property","title"],"type":"object","properties":{"dataType":{"type":"string","example":"date"},"displayFormat":{"type":"string","example":"DD MMM YYYY h:mm:ss A z"},"hideable":{"type":"boolean","example":true},"inputFormat":{"type":"string","example":"unix-time"},"isDisplay":{"type":"boolean","example":true},"minWidth":{"type":"integer","format":"int32","example":300},"property":{"type":"string","example":"entry_time"},"title":{"type":"string","example":"Timestamp"},"width":{"type":"integer","format":"int32","example":220}},"$$ref":"#/components/schemas/PowerConsumptionColumns"},"fields":{"type":"object","properties":{"dataType":{"type":"string","example":"date"},"property":{"type":"string","example":"entry_time"}},"$$ref":"#/components/schemas/GetStatDataFields"},"generatedOn":{"type":"integer","format":"int64"},"viewKeys":{"type":"object","properties":{"preferenceKey":{"type":"string"},"uniqueKey":{"type":"array","items":{"type":"string"}}},"$$ref":"#/components/schemas/PowerConsumptionViewKeys"}},"$$ref":"#/components/schemas/PowerConsumptionRespHeader"}},"$$ref":"#/components/schemas/PowerConsumptionResp"}}}}},"400":{"description":"Bad Request"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}},"x-roles-required":"Energy Management-read","__originalOperationId":"getStatsRawData_3","method":"post","path":"/statistics/powerconsumption"}}