Appearance
查询告警总览统计
接口说明
查询账号下设备告警总览信息。
请求URL
本接口通用参数里面method的值为jimi.open.report.alarm
HTTP请求方式
GET/POST
请求参数
(1)通用参数
参见: 通用参数
(2)私有参数
| 参数名 | 参数类型 | 是否必须 | 默认值 | 描述 |
|---|---|---|---|---|
| access_token | String | 是 | 访问令牌,表明其是一个合法第三方 | |
| account | String | 是 | 无 | 查询账号(包含子级账号) |
| startTime | String | 是 | 无 | 开始时间,格式为yyyy-MM-dd HH:mm:ss |
| endTime | String | 是 | false | 结束时间,格式为yyyy-MM-dd HH:mm:ss |
| subordinated | String | 否 | false | 是否包含下级设备,[false-否,true-是,不填默认false] |
| paidOff | String | 否 | false | 是否包含已还清车辆,[false-否,true-是,不填默认false] |
| imeis | String | 否 | 无 | 设备IMEI号,多个用逗号隔开,最大查询1000个 |
返回值
| 参数 | 类型 | 描述 |
|---|---|---|
| code | Int | 返回码: 0: 正确返回 其它: 失败。参考错误码说明 |
| message | String | 如果code不为0,会有相应的错误信息提示 |
| data | String | 返回的数据 |
result参数列表:
| 参数 | 类型 | 描述 |
|---|---|---|
| carId | String | 车辆ID |
| carOwnerName | String | 车辆名称 |
| carPlateNumber | String | 车牌号 |
| imei | String | IMEI号 |
| orgName | String | 所属部门 |
| deviceName | String | 设备名称 |
| salesman | String | 业务员 |
| deviceType | String | 设备机型 |
| sos | Integer | SOS求救告警 |
| cutPower | Integer | 断电告警 |
| vibration | Integer | 震动告警 |
| enterTerminalGeozone | Integer | 进入电子围栏告警 |
| exitTerminalGeozone | Integer | 离开电子围栏告警 |
| overspeed | Integer | 超速报警 |
| movement | Integer | 位移告警 |
| blindAreaEnter | Integer | 进卫星盲区报警 |
| blindAreaExit | Integer | 出卫星盲区报警 |
| bootingNotification | Integer | 开机报警 |
| firstFixNotification | Integer | 卫星第一次定位报警 |
| lowExternalPower | Integer | 外电低电报警 |
| lowPowerProtection | Integer | 外电低电保护报警 |
| simCardChange | Integer | 换卡报警 |
| powerOff | Integer | 关机报警 |
| airplaneModeAfterLowPowerProtection | Integer | 外电低电保护后飞行模式告警 |
| disassembly | Integer | 拆卸告警 |
| doorAlarm | Integer | 门告警 |
| voice | Integer | 声控告警 |
| pseudoBaseStation | Integer | 伪基站告警 |
| openCoverAlarm | Integer | 开盖告警 |
| lowPowerAlarm | Integer | 内部电池低电 |
| sleepAlarm | Integer | 进入深度睡眠告警 |
| lowPower | Integer | 低电告警 |
| dvrVibration | Integer | 后视镜震动告警 |
| overspeedDVR | Integer | 超速告警(DVR) |
| rapidAcceleration | Integer | 急加速告警 |
| rapidDeceleration | Integer | 急减速告警 |
| sharpTurn | Integer | 急转弯告警 |
| carCrash | Integer | 撞车告警 |
| illegalMobileAlert | Integer | 非法移动告警 |
| insufficientBatteryBackupAlert | Integer | 后备电池电量不足告警 |
| overStepAlert | Integer | 越界告警 |
| exitGeozone | Integer | 离开围栏告警 |
| enterGeozone | Integer | 进入围栏告警 |
| offline | Integer | 离线告警 |
| accOpen | Integer | ACC开启告警 |
| accShutdown | Integer | ACC关闭告警 |
| longtimeNotOutFence | Integer | 长时间不出围栏告警 |
| longtimeNotIntoFence | Integer | 长时间不进围栏告警 |
| lingerAlert | Integer | 逗留告警 |
| stayAlert | Integer | 停留告警 |
| sensitiveAreasFence | Integer | 黑车区域围栏告警 |
| overspeedPlatform | Integer | 超速报警 |
| separationAlarm | Integer | 设备分离 |
正确返回示例:
js
{
{
"code": 0,
"message": "success",
"result": {
[
{
"carId": 46047,
"carOwnerName": "AA",
"carPlateNumber": "AA-03",
"imei": "201808221000004",
"orgName": "测试部门",
"salesman": "李四4",
"deviceType": "GT230",
"sos": 0,
"cutPower": 0,
"vibration": 0,
"enterTerminalGeozone": 0,
"exitTerminalGeozone": 0,
"overspeed": 0,
"movement": 0,
"blindAreaEnter": 0,
"blindAreaExit": 0,
"bootingNotification": 0,
"firstFixNotification": 0,
"lowExternalPower": 0,
"lowPowerProtection": 0,
"simCardChange": 0,
"powerOff": 0,
"airplaneModeAfterLowPowerProtection": 0,
"disassembly": 0,
"doorAlarm": 0,
"voice": 0,
"pseudoBaseStation": 0,
"openCoverAlarm": 0,
"lowPowerAlarm": 0,
"sleepAlarm": 0,
"lowPower": 0,
"dvrVibration": 0,
"overspeedDVR": 0,
"rapidAcceleration": 0,
"rapidDeceleration": 0,
"sharpTurn": 0,
"carCrash": 0,
"illegalMobileAlert": 0,
"insufficientBatteryBackupAlert": 0,
"overStepAlert": 0,
"exitGeozone": 4,
"enterGeozone": 5,
"offline": 1,
"accOpen": 0,
"accShutdown": 0,
"longtimeNotOutFence": 4,
"longtimeNotIntoFence": 4,
"lingerAlert": 0,
"stayAlert": 3,
"sensitiveAreasFence": 24,
"overspeedPlatform": 0,
"separationAlarm": 0
},
{
"carId": "",
"carOwnerName": "",
"carPlateNumber": "",
"imei": "201808221000010",
"orgName": "测试部门",
"salesman": "",
"deviceType": "GT230",
"sos": 0,
"cutPower": 0,
"vibration": 0,
"enterTerminalGeozone": 0,
"exitTerminalGeozone": 0,
"overspeed": 0,
"movement": 0,
"blindAreaEnter": 0,
"blindAreaExit": 0,
"bootingNotification": 0,
"firstFixNotification": 0,
"lowExternalPower": 0,
"lowPowerProtection": 0,
"simCardChange": 0,
"powerOff": 0,
"airplaneModeAfterLowPowerProtection": 0,
"disassembly": 0,
"doorAlarm": 0,
"voice": 0,
"pseudoBaseStation": 0,
"openCoverAlarm": 0,
"lowPowerAlarm": 0,
"sleepAlarm": 0,
"lowPower": 0,
"dvrVibration": 0,
"overspeedDVR": 0,
"rapidAcceleration": 0,
"rapidDeceleration": 0,
"sharpTurn": 0,
"carCrash": 0,
"illegalMobileAlert": 0,
"insufficientBatteryBackupAlert": 0,
"overStepAlert": 0,
"exitGeozone": 5,
"enterGeozone": 4,
"offline": 2,
"accOpen": 0,
"accShutdown": 0,
"longtimeNotOutFence": 4,
"longtimeNotIntoFence": 5,
"lingerAlert": 0,
"stayAlert": 4,
"sensitiveAreasFence": 16,
"overspeedPlatform": 0,
"separationAlarm": 0
},
...........
]
}
}错误返回示例:
js
{"code":xxx,"message":"非法用户"}