APIs for sensor data acquisition of smart grid and then processing it in the cloud for real-time monitoring