{"type":"api","title":"Get Post Aggregation Data By Query Monitoring Temperature Statistics 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 - Temperature 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":"getPostAggregationDataByQuery_MonitoringTemperatureStatistics_3504","requestBody":{"description":"Stats query string","content":{"application/json":{"schema":{"type":"object"},"examples":{"Monitoring - Temperature Statistics":{"description":"generated by base class - Monitoring - Temperature Statistics","value":{"query":{"condition":"AND","rules":[{"value":["6"],"field":"entry_time","type":"date","operator":"last_n_hours"},{"value":["172.16.255.15"],"field":"vdevice_name","type":"string","operator":"in"}]},"aggregation":{"metrics":[{"property":"current_reading","type":"avg"}],"field":[{"property":"slot_loc"},{"property":"comp_name"}],"histogram":{"property":"entry_time","type":"minute","interval":30,"order":"asc"}}},"$$ref":"#/components/examples/ComViptelaVmanageServerElasticsearchAbstractstatisticsrestfulresourceParameterExampleTemperaturestatistics"}}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"},"examples":{"Monitoring - Temperature Statistics":{"description":"generated by base class - Monitoring - Temperature Statistics","value":{"header":{"generatedOn":1741076666609,"columns":[{"property":"entry_time","title":"Entry_time","dataType":"date","isDisplay":true},{"property":"comp_name","title":"Comp_name","dataType":"string","isDisplay":true},{"property":"current_reading","title":"Current_reading","dataType":"double","isDisplay":true},{"property":"slot_loc","title":"Slot_loc","dataType":"string","isDisplay":true}],"fields":[{"property":"entry_time","dataType":"date"},{"property":"comp_name","dataType":"string"},{"property":"current_reading","dataType":"double"},{"property":"slot_loc","dataType":"string"}]},"entryTimeList":[1741053600000,1741055400000,1741057200000,1741059000000,1741060800000,1741062600000,1741064400000,1741066200000,1741068000000,1741069800000,1741071600000,1741073400000,1741075200000],"data":[{"entry_time":1741053600000,"current_reading":18,"slot_loc":"Slot1","comp_name":"Comp2","count":3},{"entry_time":1741053600000,"current_reading":10.333,"slot_loc":"Slot2","comp_name":"Comp1","count":3},{"entry_time":1741053600000,"current_reading":15.333,"slot_loc":"Slot1","comp_name":"Comp1","count":3},{"entry_time":1741053600000,"current_reading":20.333,"slot_loc":"Slot2","comp_name":"Comp2","count":3},{"entry_time":1741055400000,"current_reading":43,"slot_loc":"Slot1","comp_name":"Comp2","count":3},{"entry_time":1741055400000,"current_reading":10.333,"slot_loc":"Slot2","comp_name":"Comp1","count":3},{"entry_time":1741055400000,"current_reading":25,"slot_loc":"Slot1","comp_name":"Comp1","count":3},{"entry_time":1741055400000,"current_reading":7,"slot_loc":"Slot2","comp_name":"Comp2","count":3},{"entry_time":1741057200000,"current_reading":30.667,"slot_loc":"Slot2","comp_name":"Comp1","count":3},{"entry_time":1741057200000,"current_reading":13,"slot_loc":"Slot1","comp_name":"Comp2","count":3},{"entry_time":1741057200000,"current_reading":48,"slot_loc":"Slot2","comp_name":"Comp2","count":3},{"entry_time":1741057200000,"current_reading":16.333,"slot_loc":"Slot1","comp_name":"Comp1","count":3},{"entry_time":1741059000000,"current_reading":20.333,"slot_loc":"Slot1","comp_name":"Comp2","count":3},{"entry_time":1741059000000,"current_reading":22.667,"slot_loc":"Slot2","comp_name":"Comp1","count":3},{"entry_time":1741059000000,"current_reading":17.333,"slot_loc":"Slot1","comp_name":"Comp1","count":3},{"entry_time":1741059000000,"current_reading":27.333,"slot_loc":"Slot2","comp_name":"Comp2","count":3}]},"$$ref":"#/components/examples/ComViptelaVmanageServerElasticsearchAbstractstatisticsrestfulresourceResponseExampleTemperaturestatistics"}}}}},"400":{"description":"Bad Request"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}},"x-roles-required":"default,dca","method":"post","path":"/statistics/temperature/aggregation"}}