detection.motion.detected(移动检测报警)
detection.motion.detected:移动检测报警
detection.motion.detected · 通道级 · 消息查询权限 Alarm
功能详情
标准推送以 capabilityEvent 与本页 msgType 为准;消息 list/search 亦可能命中历史 msg_type,以 device.capability.list 与消息查询为准。 事件字段见 事件专页。
动检触发时上报。compose 事件:多路 源合并为同一 msgType=detection.motion.detected,outputData 以设备实际上报为准,常见为 {} 或仅含 extendContext(部分机型)。收这条推送需要订阅 capabilityEvent。见 接收设备消息、setMessageCallback。
上报字段说明
下表为 可能 出现在 outputData 中的字段(非每条上报都带)。动检推送一般还会带缩略图、告警图,有联动云录像时还有 token;开通智见时还有文案和标签。见 接收设备消息。
| 参数名 | 说明 | 类型 | 必填 | 取值 |
|---|---|---|---|---|
extendContext | 扩展上下文。含 handleBit。 | struct | 否 | 含 handleBit |
extendContext.handleBit | 处理掩码。范围 0~999,步长 1。 | int | 否 | 0~999,步长 1 |
样例
常见空业务字段:
{
"msgType": "detection.motion.detected",
"deviceId": "TESTIPC000012345",
"productId": "56WGTET2",
"channelId": "0",
"outputData": {},
"time": 1673406989,
"localTime": "20230111T111629",
"alarmId": "116257862023505xxxx"
}
部分机型含 extendContext:
{
"msgType": "detection.motion.detected",
"deviceId": "TESTIPC000012345",
"productId": "56WGTET2",
"channelId": "0",
"outputData": {
"extendContext": {
"handleBit": 1
}
},
"time": 1673406989,
"localTime": "20230111T111629",
"alarmId": "116257862023505xxxx",
"token": "f2dc8c09eeae4b5bad6abf522c93d825",
"thumbUrl": "https://example.imou.com/pic/thumb.jpg",
"picUrlArray": [
"https://example.imou.com/pic/frame1.jpg",
"https://example.imou.com/pic/frame2.jpg"
],
"labelType": "humanAlarm",
"aiCopyWriting": "穿黑衣服的男子从门店骑车经过",
"securityRiskLevel": 1,
"aiTag": ["人", "车"]
}
最小权限
管理员操作自己绑定的设备不需要权限。操作被分享设备需要报警消息权限。子用户绑定不需要。子账号需要 Alarm。列表/检索按条过滤无权事件。动检。
