文档
测试

根据机房或机层获取告警统计

GET
localhost:3080/device_location/get_warning_count_by_building

接口描述

根据机楼的机层或机房的id获取告警统计

请求参数

参数名
类型
描述
必填
SUID
Int
局站id
必填
room_id
ObjectId
机房信息的_id
必填

响应参数

参数名
类型
描述
必填
message
string
接口描述信息
必填
data
Dict
各级告警的树木
必填
1
int
一级告警数目
必填
2
int
二级告警数目
必填
3
int
三级告警数目
必填
4
int
四级告警数目
必填

说明 / 示例

http://192.168.31.55:3080/device_location/get_warning_count_by_building?SUID=134362&room_id=5f16ae0efc6ef9489bf44080 { "data": { "1": 1, "2": 0, "3": 2, "4": 0 }, "message": "success" }