1.概述
想测试一个流 如果房间的温度在10分钟内升高5度,此查询将发送警报。
/**
* 测试一个流
* 如果房间的温度在10分钟内升高5度,此查询将发送警报。
*
* 测试结果: 测试未通过
*
* {"deviceId":1,"deviceName":"华为路由器","deviceTemperature":1,"timestamp":1589250801}
* {"deviceId":1,"deviceName":"华为路由器","deviceTemperature":10,"timestamp":1589251821}
* {"deviceId":1,"deviceName":"华为路由器","deviceTemperature":20,"timestamp":1589253021}
* {"deviceId":1,"deviceName":"华为路由器","deviceTemperature":35,"timestamp":1589253201}
* {"deviceId":1,"deviceName":"华为路由器","deviceTemperature":45,"timestamp":1589253