指标接口
设备状态统计(当前)
接口地址:
/open/api/data/device/status
接口类型:
GET
请求参数:
无
响应参数:
{
"code": "200",
"data": [
{
"total": 249,
"name": "正常",
"status": 0
},
{
"total": 1,
"name": "未启用",
"status": -1
},
{
"total": 1,
"name": "离线",
"status": 1
},
{
"total": 1,
"name": "故障",
"status": 2
}
],
"time": 1686644838284,
"msg": "操作成功",
"annex": null,
"success": true
}
设备事件统计(当前)
接口地址:
/open/api/data/device/event
接口类型:
GET
请求参数:
无
响应参数:
{
"code": "200",
"data": [
{
"total": 252,
"name": "正常"
}
],
"time": 1686644920478,
"msg": "操作成功",
"annex": null,
"success": true
}
IBMS对应设备数量(当前)
接口地址:
/open/api/data/device/ibms
接口类型:
GET
请求参数:
无
响应参数:
{
"code": "200",
"data": [
{
"total": 1,
"ibms_id": "ENERGY_CONSUMPTION",
"name": "能源"
}
],
"time": 1686645010378,
"msg": "操作成功",
"annex": null,
"success": true
}
南向平台对应设备数量(当前)
接口地址:
/open/api/data/device/system
接口类型:
GET
请求参数:
无
响应参数:
{
"code": "200",
"data": [
{
"total": 21,
"name": "飞企物联平台",
"source_id": "jetlinks"
},
{
"total": 1,
"name": "默认"
},
{
"total": 1,
"name": "智能网关",
"source_id": "test_edge"
}
],
"time": 1686645088177,
"msg": "操作成功",
"annex": null,
"success": true
}
不同设备类型对应设备数量(当前)
接口地址:
/open/api/data/device/classify
接口类型:
GET
请求参数:
无
响应参数:
{
"code": "200",
"data": [
{
"total": 211,
"type_id": "LED_SCREEN",
"name": "LED屏"
},
{
"total": 5,
"type_id": "ELECTRICITY_METER",
"name": "电表"
},
{
"total": 5,
"type_id": "INTEL_GATEWAY",
"name": "智能网关"
},
{
"total": 2,
"type_id": "ELECTRIC_RELAY",
"name": "继电器"
},
{
"total": 2,
"type_id": "WATER_IMMERSION",
"name": "水浸报警器"
},
{
"total": 1,
"type_id": "LTH_SENSOR",
"name": "光照温湿度传感器"
},
],
"time": 1686645186750,
"msg": "操作成功",
"annex": null,
"success": true
}
告警排行-设备类型
接口地址:
/open/api/data/event/deviceClassify
接口类型:
GET
请求参数:
参数 | 参数名称 | 是否必填 | 说明 |
---|---|---|---|
timeType | 周期 | 是 | year,month,week,day |
- 响应参数:
{
"code": "200",
"data": [
{
"total": 1,
"name": "设备告警",
"type": "DEVICE_ALARM"
}
],
"time": 1687660551099,
"msg": "操作成功",
"annex": null,
"success": true
}
告警排行-告警类型
接口地址:
/open/api/data/event/type
接口类型:
GET
请求参数:
参数 | 参数名称 | 是否必填 | 说明 |
---|---|---|---|
timeType | 周期 | 是 | year,month,week,day |
- 响应参数:
{
"code": "200",
"data": [
{
"total": 1,
"name": "设备告警",
"type": "DEVICE_ALARM"
}
],
"time": 1687660551099,
"msg": "操作成功",
"annex": null,
"success": true
}
文档更新时间: 2023-06-25 10:47 作者:管理员