Query the number of Device alarms per day for a certain month in all Plant

for example: http://api.shinemonitor.com/public/?sign=45a0317337cad1b975b7cc8e6ae35401daa5c356&salt=6799118618252297881&token=5b13e18eaa179d4bdce4cf2cc0e66eaa506c7f27ccac6b9e7beaa190ec0e386f&action=queryPlantsWarningCountMonthPerDay&date=2017-06&source=0&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1

Parameter Description Required
action queryPlantsWarningCountMonthPerDay True
level Alarm level,If this parameter is not passed, it indicates you do not care False
date Date to query, format: yyyy-mm, The date is considered to be the time zone where each Plant is located, If this parameter is not passed, it will be defaulted to the current month False

response:

Parameter Description Required
perday[x].ts time stamp, format: yyyy-mm-dd hh:mi:ss, The hh: mi: ss part is meaningless True
perday[x].val count True
{
    "err":0,
    "desc":"ERR_NONE",
    "dat":{
        "perday":[
            {
                "val":"2",
                "ts":"2017-12-01 08:00:00"
            },
            {
                "val":"3",
                "ts":"2017-12-02 08:00:00"
            }
        ]
    }
}
Copyright © eybond 2022 all right reserved,powered by Gitbook文档更新时间: 2023-07-18 10:26:38

results matching ""

    No results matching ""