中科图灵开放平台 / 智慧消防设备管理模块 / 统计不同电量下各个设备类型设备分布图

统计不同电量下各个设备类型设备分布图

接口描述: 统计不同电量下各个设备类型设备分布图

HTTP/HTTPS
请求协议
GET
请求方式
UTF-8
编码格式
JSON
返回格式
v1.0
版本号

接口参数

参数名字类型是否必须默认值其他说明
access_token字符串可选访问令牌,仅当开启签名验证时需要传递,生成令牌可使用App.Auth.ApplyToken接口
deptId字符串必须-单位id 示例
isDept字符串必须-0:单位 1:区域 示例
apiRequestRaw字符串可选-
headerInfo字符串可选-[]

返回字段

返回结果类型说明
ret整型状态码,200表示成功,4xx表示客户端非法请求,5xx表示服务器错误
data对象或混合类型业务数据,由各自接口指定,通常为对象
data.code字符串
data.msg字符串
data.dataArray
data.data>>powerEnergeticNum字符串
data.data>>powerAbnormalNum字符串
data.data>>powerEmptyNum字符串
data.data>>totalNum字符串
data.data>>deviceTypeId字符串
data.data>>deviceTypeName字符串
data.data>>powerEnergeticList数组电量充沛的数据分布
data.data>>powerEnergeticList>>powerEnergeticNum字符串
data.data>>powerEnergeticList>>powerAbnormalNum字符串
data.data>>powerEnergeticList>>powerEmptyNum字符串
data.data>>powerEnergeticList>>totalNum字符串设备类型对应的设备数量
data.data>>powerEnergeticList>>deviceTypeId字符串
data.data>>powerEnergeticList>>deviceTypeName字符串设备类型名称
data.data>>powerEnergeticList>>powerEnergeticList字符串
data.data>>powerEnergeticList>>powerEmptyList字符串
data.data>>powerEnergeticList>>powerLowList字符串
data.data>>powerEmptyList数组电量电量耗尽
data.data>>powerEmptyList>>powerEnergeticNum字符串
data.data>>powerEmptyList>>powerAbnormalNum字符串
data.data>>powerEmptyList>>powerEmptyNum字符串
data.data>>powerEmptyList>>totalNum字符串
data.data>>powerEmptyList>>deviceTypeId字符串
data.data>>powerEmptyList>>deviceTypeName字符串
data.data>>powerEmptyList>>powerEnergeticList字符串
data.data>>powerEmptyList>>powerEmptyList字符串
data.data>>powerEmptyList>>powerLowList字符串
data.data>>powerLowList数组电量电量过低
msg字符串提示信息,失败时的错误提示

在线测试   

参数是否必须
service 必须
access_token 可选
deptId 必须
isDept 必须
apiRequestRaw 可选
headerInfo 可选

客户端请求示例

成功响应返回示例:
{
    "code": 0,
    "msg": null,
    "data": {
        "powerEnergeticNum": 0,
        "powerAbnormalNum": 0,
        "powerEmptyNum": 0,
        "totalNum": null,
        "deviceTypeId": null,
        "deviceTypeName": null,
        "powerEnergeticList": [
            {
                "powerEnergeticNum": 0,
                "powerAbnormalNum": 0,
                "powerEmptyNum": 0,
                "totalNum": 48,
                "deviceTypeId": 221,
                "deviceTypeName": "NB-IOT五合一消火栓",
                "powerEnergeticList": null,
                "powerEmptyList": null,
                "powerLowList": null
            },
            {
                "powerEnergeticNum": 0,
                "powerAbnormalNum": 0,
                "powerEmptyNum": 0,
                "totalNum": 10,
                "deviceTypeId": 21,
                "deviceTypeName": "NB-IoT无线复合式感温感烟报警器",
                "powerEnergeticList": null,
                "powerEmptyList": null,
                "powerLowList": null
            },
            {
                "powerEnergeticNum": 0,
                "powerAbnormalNum": 0,
                "powerEmptyNum": 0,
                "totalNum": 3,
                "deviceTypeId": 223,
                "deviceTypeName": "NB-IOT五合一液位",
                "powerEnergeticList": null,
                "powerEmptyList": null,
                "powerLowList": null
            },
            {
                "powerEnergeticNum": 0,
                "powerAbnormalNum": 0,
                "powerEmptyNum": 0,
                "totalNum": 2,
                "deviceTypeId": 222,
                "deviceTypeName": "NB-IOT五合一水压",
                "powerEnergeticList": null,
                "powerEmptyList": null,
                "powerLowList": null
            },
            {
                "powerEnergeticNum": 0,
                "powerAbnormalNum": 0,
                "powerEmptyNum": 0,
                "totalNum": 2,
                "deviceTypeId": 241,
                "deviceTypeName": "LoRaWan五合一液位",
                "powerEnergeticList": null,
                "powerEmptyList": null,
                "powerLowList": null
            },
            {
                "powerEnergeticNum": 0,
                "powerAbnormalNum": 0,
                "powerEmptyNum": 0,
                "totalNum": 1,
                "deviceTypeId": 209,
                "deviceTypeName": "赛特威尔烟温复合感烟探测器",
                "powerEnergeticList": null,
                "powerEmptyList": null,
                "powerLowList": null
            },
            {
                "powerEnergeticNum": 0,
                "powerAbnormalNum": 0,
                "powerEmptyNum": 0,
                "totalNum": 1,
                "deviceTypeId": 240,
                "deviceTypeName": "LoRaWAN五合一消火栓",
                "powerEnergeticList": null,
                "powerEmptyList": null,
                "powerLowList": null
            },
            {
                "powerEnergeticNum": 0,
                "powerAbnormalNum": 0,
                "powerEmptyNum": 0,
                "totalNum": 1,
                "deviceTypeId": 29,
                "deviceTypeName": "无线复合式感温感烟报警器",
                "powerEnergeticList": null,
                "powerEmptyList": null,
                "powerLowList": null
            }
        ],
        "powerEmptyList": [
            {
                "powerEnergeticNum": 0,
                "powerAbnormalNum": 0,
                "powerEmptyNum": 0,
                "totalNum": 6,
                "deviceTypeId": 221,
                "deviceTypeName": "NB-IOT五合一消火栓",
                "powerEnergeticList": null,
                "powerEmptyList": null,
                "powerLowList": null
            },
            {
                "powerEnergeticNum": 0,
                "powerAbnormalNum": 0,
                "powerEmptyNum": 0,
                "totalNum": 1,
                "deviceTypeId": 222,
                "deviceTypeName": "NB-IOT五合一水压",
                "powerEnergeticList": null,
                "powerEmptyList": null,
                "powerLowList": null
            },
            {
                "powerEnergeticNum": 0,
                "powerAbnormalNum": 0,
                "powerEmptyNum": 0,
                "totalNum": 1,
                "deviceTypeId": 240,
                "deviceTypeName": "LoRaWAN五合一消火栓",
                "powerEnergeticList": null,
                "powerEmptyList": null,
                "powerLowList": null
            }
        ],
        "powerLowList": []
    }
}
失败响应返回示例:

错误列表

错误状态码错误描述信息
400ret=400,客户端参数错误或非法请求
404表示接口服务不存在
406ret=406,access_token令牌校验不通过
407ret=407,app_key权限不足,或未知应用
408ret=408,当前用户禁止使用,或用户未登录
409ret=409,接口流量不足
500表示服务端内部错误

本文档生成时间:2024-05-22 09:50:17