English
English
简体中文
Contact Us
Register
Log In

Query Alert Chart

Last Updated on : 2022-04-02 09:03:01

Query historical data charts of alerts.

API address

GET: /v1.0/si/iot-03/alarm-statistics/chart

Request parameter

Parameter nameTypeINRequiredDescription
monitor_object_typeStringquerytrueThe type of a specified monitored object. Valid values:
  • energy_collect: industrial energy consumption.
  • environment: industrial environment.
  • vibration: industrial vibration.
start_timeLongquerytrueThe start time.
end_timeLongquerytrueThe end time.

Return parameter

Parameter nameTypeDescription
resultListThe returned result.

Description of result

Parameter nameTypeDescription
timeLongThe time.
low_level_numIntegerThe number of low-level alerts.
high_level_numIntegerThe number of high-level alerts.

Request example

GET: /v1.0/si/iot-03/alarm-statistics/chart?monitorObjectType=vibration&startTime=1639191477000&endTime=1639623477898

Return example

{
    "result": [
        {
            "high_level_num": 1,
            "low_level_num": 4,
            "time": 1639324800000
        },
        {
            "high_level_num": 1,
            "low_level_num": 1,
            "time": 1639411200000
        }
    ],
    "t": 1639623535940,
    "success": true
}

Error code

For more information, see error code.