{"info":{"_postman_id":"444c40d9-b7ac-4595-913f-fb4400353a40","name":"HVAC_APP - Dashboards","description":"This document contains the necessary API endpoints and its reponse payload which would be used for visualizing the results in dashboard. \nThe response is always in JSON format.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"get_all_chiller_models","id":"ef7b75b4-cb6e-4e03-baf0-cf9ceead47a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/get_all_chiller_models","description":"This request is intended to get all the chiller models present in the database"},"response":[{"id":"c7201e6d-bba3-4ef0-b147-55e1bdacc4d9","name":"get_all_chiller_models","originalRequest":{"method":"POST","header":[],"url":"/get_all_chiller_models"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n\t{\n\t\t\"model_number\":\"30XA0802\"\n\t},\n\t{\n\t\t\"model_number\":\"ACDX120\"\n\t},\n\t{\n\t\t\"model_number\":\"ACEGWFXR0551ML02WW\"\n\t},\n\t{\n\t\t\"model_number\":\"ACFX105-5S\"\n\t}\n]"}],"_postman_id":"ef7b75b4-cb6e-4e03-baf0-cf9ceead47a1"},{"name":"get_all_chiller_vendors","id":"0db98033-5f76-48dd-a5dc-19dc59a2b7b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/get_all_chiller_vendors","description":"This request is intended to get all the chiller vendors present in the database"},"response":[{"id":"8b5a192f-bcb0-4df7-92a8-f25cb51d189b","name":"get_all_chiller_vendors","originalRequest":{"method":"POST","header":[],"url":"/get_all_chiller_vendors"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n\t{\n\t\t\"vendor_name\":\"VOLTAS\"\n\t},\n\t{\n\t\t\"vendor_name\":\"DUNHAM BUSH\"\n\t},\n\t{\n\t\t\"vendor_name\":\"CARRIER\"\n\t},\n\t{\n\t\t\"vendor_name\":\"MITSUBISHI ELECTRIC\"\n\t},\n\t{\n\t\t\"vendor_name\":\"INGERSOLL RAND\"\n\t}\n]"}],"_postman_id":"0db98033-5f76-48dd-a5dc-19dc59a2b7b7"},{"name":"get_fault_count","id":"43bfe70b-a0b2-4ace-8f5e-aa7e73798a3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"Start datetime (epoch milliseconds) of period for which results need to be visualized","key":"from_date","type":"text","value":"1554058800000"},{"description":"End datetime (epoch milliseconds) of period for which results need to be visualized","key":"to_date","type":"text","value":"1554577200000"},{"description":"Vendor Names as in Database [null in case no vendor is selected]","key":"vendor_name","type":"text","value":"VOLTAS, CARRIER"},{"description":"Model Numbers as in Database [null in case no model is selected]","key":"model_number","type":"text","value":"30XA0802, ACEGWFXR0551ML02WW"}]},"url":"/get_fault_count","description":"This request is intended to fetch the results from the database when queried with the start and end time stamps of the period of analysis. Chiller vendor name and model number are two parameters which are optional i.e., specified when a selection is made.\nIn case the vendor and model number are not selected, its corresponding values would be set to null.\n\nThe response payload contains the request parameters for verification, and the fault counts based on circles, clusters and fault categories"},"response":[{"id":"4cdb5221-9568-49b3-b3ad-baa6bf2413d0","name":"get_fault_count","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"from_date","value":"1554058800000","description":"Start datetime (epoch milliseconds) of period for which results need to be visualized","type":"text"},{"key":"to_date","value":"1554577200000","description":"End datetime (epoch milliseconds) of period for which results need to be visualized","type":"text"},{"key":"vendor_name","value":"VOLTAS, CARRIER","description":"Vendor Names as in Database [null in case no vendor is selected]","type":"text"},{"key":"model_number","value":"30XA0802, ACEGWFXR0551ML02WW","description":"Model Numbers as in Database [null in case no model is selected]","type":"text"}]},"url":"/get_fault_count"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"from_date\":\"1554058800000\",\n\t\"to_date\":\"1554577200000\",\n\t\"vendor_name\":[\"VOLTAS\", \"CARRIER\"],\n\t\"model_number\":[\"30XA0802\",\"ACEGWFXR0551ML02WW\"],\n\t\"circle_wide_results\":{\n\t\t\"C1\":5,\n\t\t\"C2\":56,\n\t\t\"C3\":2\n\t},\n\t\"cluster_wide_results\":{\n\t\t\"CL1\":16,\n\t\t\"CL2\":1,\n\t\t\"CL3\":26,\n\t\t\"CL4\":15,\n\t\t\"CL5\":5\n\t},\n\t\"fault_distribution\":{\n\t\t\"F1\":40,\n\t\t\"F2\":1,\n\t\t\"F3\":20\n\t}\n}"}],"_postman_id":"43bfe70b-a0b2-4ace-8f5e-aa7e73798a3a"}],"event":[{"listen":"prerequest","script":{"id":"a3a31301-3cfb-4a1e-9ca8-5c92a64d3beb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ddd4a161-4807-42c5-aa99-4909f972e864","type":"text/javascript","exec":[""]}}]}