Skip to content

Latest commit

 

History

History
91 lines (62 loc) · 1.18 KB

current_alerts.md

File metadata and controls

91 lines (62 loc) · 1.18 KB

当前告警

查看当前告警

API 定义

GET /api/v1/current_alerts?_page={page}&_limit={pageSize}

请求示例

GET /api/v1/current_alerts?_page=1&_limit=10

成功响应

status 200
{
  "items": [
    {
      "alertContent": "电流过大,请检查设备",
      "alertDetail": {
        "Addr": 52,
        "Current": 0.199,
        "PowerConsumption": 1.4000000000000001,
        "State": 1,
        "TimeStamp": 1539756645,
        "Voltage": 239.39000000000001
      },
      "alertName": "电流过大",
      "alertSeverity": 1,
      "alertSeverityLabel": "紧急",
      "alertTimes": 8125,
      "createAt": "2018-10-16 18:12:56",
      "deviceID": "8d05fa80d5be5a42a0c999865222176d",
      "deviceName": "智能电表01",
      "id": 116,
      "startTime": "2018-10-16 15:20:05",
      "updateAt": null
    }
  ],
  "meta": {
    "count": 1,
    "limit": 10,
    "page": 1
  }
}

处理当前告警

API 定义

DELETE /api/v1/current_alerts?ids={alertIDS}

请求示例

DELETE /api/v1/current_alerts?ids=11

成功响应

status 204
""