事件总表
事件总表
收能力事件推送需要订阅 capabilityEvent(setMessageCallback、接收告警)。本表为唯一 eventId 总表;告警消息章 事件总表(镜像) 为同一 msgType 集合。名称链到 事件目录 与 events/pages/ 下各篇;完整推送样例(含 deviceId/outputData 外壳)以对应能力域 event 叶为准。历史 alarm / deviceStatus 字符串 msgType 见 事件消息类型定义,报文见 事件消息格式定义。检索走 按类型检索告警,单条走 查询单条告警。
| 事件 | ID | 主要字段 | 查询 | 接收 |
|---|---|---|---|---|
| 算法包下载结果 | algorithm.package.downloadResult | type、dwnResult、dwnResult.ret、dwnResult.url、url | 查询 | 接收 |
| 算法包升级结果 | algorithm.package.upgradeResult | upgradeResult、type、upgradeResult.url、upgradeResult.ret、url | 查询 | 接收 |
| 呼入 | call.session.called | modeType、index、callId、type、desc、shareLinkTalk | 查询 | 接收 |
| 已接听 | call.session.answered | modeType、index、callId、type、desc、forwardSeconds、backwardSeconds | 查询 | 接收 |
| 已挂断 | call.session.hungUp | modeType、index、callId、type、desc | 查询 | 接收 |
| 已拒绝 | call.session.refused | modeType、index、callId、type、desc、forwardSeconds、backwardSeconds | 查询 | 接收 |
| 已取消 | call.session.cancelled | 无 | 查询 | 接收 |
| 红外学习失败 | control.ir.studyFailed | 无 | 查询 | 接收 |
| 倒计时失败 | control.outlet.countdownFailed | chn、order | 查询 | 接收 |
| 倒计时完成 | control.outlet.countdownFinished | chn、order、action | 查询 | 接收 |
| 功率过载 | control.outlet.overload | 无 | 查询 | 接收 |
| 第二路开关事件 | control.outlet.switch2Switched | switch | 查询 | 接收 |
| 第三路开关事件 | control.outlet.switch3Switched | switch | 查询 | 接收 |
| 开关变更事件 | control.outlet.switched | switch | 查询 | 接收 |
| 定时任务失败 | control.outlet.timerFailed | chn、order | 查询 | 接收 |
| 定时任务结束 | control.outlet.timerFinished | chn、order、action | 查询 | 接收 |
| 布撤防模式变化 | detection.arming.changed | mode | 查询 | 接收 |
| 关注区域检出 | detection.attention.detected | 无 | 查询 | 接收 |
| 特征图识别结果 | detection.counting.picRecognized | pics | 查询 | 接收 |
| 啼哭声报警事件 | detection.cry.detected | 无 | 查询 | 接收 |
| 锁舌卡住 | detection.door.blocked | 无 | 查询 | 接收 |
| 关门告警 | detection.door.closed | 无 | 查询 | 接收 |
| 开门告警 | detection.door.opened | 无 | 查询 | 接收 |
| 门卡开锁失败 | detection.door.cardFailed | hard_id | 查询 | 接收 |
| 指纹开锁失败 | detection.door.fingerprintFailed | hard_id | 查询 | 接收 |
| 高温报警(门锁) | detection.door.highTemperature | 无 | 查询 | 接收 |
| 门锁劫持报警 | detection.door.hijack | type、keyId | 查询 | 接收 |
| 钥匙插入 | detection.door.keyInserted | 无 | 查询 | 接收 |
| 密码开锁失败 | detection.door.passwordFailed | hard_id | 查询 | 接收 |
| 开门事件(凭证) | detection.door.unlockEvent | type、keyID、result、direction | 查询 | 接收 |
| 离岗检出 | detection.duty.detected | region | 查询 | 接收 |
| 高湿度报警 | detection.environment.humidityHigh | 无 | 查询 | 接收 |
| 低湿度报警 | detection.environment.humidityLow | 无 | 查询 | 接收 |
| 高温报警(环境) | detection.environment.temperatureHigh | 无 | 查询 | 接收 |
| 低温报警 | detection.environment.temperatureLow | 无 | 查询 | 接收 |
| 人脸比对 | detection.face.detected | id、faces、snapFace、candidates、ptzInfo、isDuplicateRemove、address、passerby、passerby.uid | 查询 | 接收 |
| 跌倒检出 | detection.fall.detected | name | 查询 | 接收 |
| 门控-门关 | detection.gate.closed | 无 | 查询 | 接收 |
| 长时间未关门 | detection.gate.leftOpen | 无 | 查询 | 接收 |
| 门控-门开(配件) | detection.gate.opened | 无 | 查询 | 接收 |
| 区域入侵检测报警 | detection.intrusion.detected | region、unlockType、keyId、keyName、location、phone | 查询 | 接收 |
| 徘徊检出 | detection.loitering.detected | region | 查询 | 接收 |
| 未成年检出 | detection.minor.detected | 无 | 查询 | 接收 |
| AI提醒-混合出现 | detection.mix.detected | type | 查询 | 接收 |
| 移动检测报警 | detection.motion.detected | extendContext、extendContext.handleBit | 查询 | 接收 |
| 视频遮挡检出 | detection.occlusion.detected | 无 | 查询 | 接收 |
| 违停检出 | detection.parking.detected | region | 查询 | 接收 |
| 智能检测到人形 | detection.person.detected | 无 | 查询 | 接收 |
| 宠物检出 | detection.pet.detected | 无 | 查询 | 接收 |
| PIR 消警 | detection.pir.cleared | 无 | 查询 | 接收 |
| PIR 检出 | detection.pir.detected | 无 | 查询 | 接收 |
| 车牌识别 | detection.plate.detected | infos、infos.no、mainColor、subBrand、category、groupType | 查询 | 接收 |
| 车辆守卫检出 | detection.sentry.detected | region | 查询 | 接收 |
| 警笛瞬时告警 | detection.siren.activated | 无 | 查询 | 接收 |
| 语音呼救(通用) | detection.sos.detected | 无 | 查询 | 接收 |
| 异常音报警事件 | detection.sound.detected | soundType | 查询 | 接收 |
| 越线检出 | detection.trip.detected | region | 查询 | 接收 |
| 无人出现检出 | detection.unmanned.detected | region | 查询 | 接收 |
| 车辆检出 | detection.vehicle.detected | dhEventType、dhEventObject | 查询 | 接收 |
| 低电量报警(常规) | power.battery.low | type、elePercent | 查询 | 接收 |
| 满电量告警 | power.battery.full | 无 | 查询 | 接收 |
| 用电模式切换 | power.mode.changed | mode、battery、electric | 查询 | 接收 |
| 设备即将休眠事件 | power.sleep.imminent | 无 | 查询 | 接收 |
| 普通事件投递 | record.event.detected | 无 | 查询 | 接收 |
| 延时摄影完成事件 | record.timelapse.completed | 无 | 查询 | 接收 |
| 存储卡异常报警 | storage.local.abnormal | errorCode | 查询 | 接收 |
| 存储卡拔出报警 | storage.local.removed | 无 | 查询 | 接收 |
| 心跳 | system.diagnostics.heartbeat | index | 查询 | 接收 |
| 设备启动 | system.diagnostics.booted | 无 | 查询 | 接收 |
| 设备开始升级 | system.upgrade.started | 无 | 查询 | 接收 |
| 升级进度上报 | system.upgrade.progressReport | upgrade_result | 查询 | 接收 |
| 设备升级成功 | system.upgrade.succeeded | 无 | 查询 | 接收 |
| 设备升级失败 | system.upgrade.failed | errCode | 查询 | 接收 |
配置变化上报
订了 capabilityEvent 后,已在目录中的配置变化上报固定 msgType 为 device.property.report。查询仍按对应配置项的 propertyId;不要拿 device.property.report 去 list。
| 说明 | ID | 对应配置 | 查询 | 接收 |
|---|---|---|---|---|
| 配置变化上报 | device.property.report | 如 隐私模式、探照灯、白光、警笛状态、电量信息 | 查询 | 接收 |
绑定、分享、在离线等不在本表的类型,见 消息推送。
