事件method
vms.notifyAlarmPicture
事件类型
business
字段说明
| 参数 | 类型 | 描述 | 
|---|---|---|
| method | string | 固定值:vms.notifyAlarmPicture | 
| subsystem | string | 固定值:admin | 
| id | number | 消息id | 
| category | string | 固定值:business | 
| - info | NotifyAlarmPictureInfo | 联动抓图信息 | 
NotifyAlarmPictureInfo
| 参数 | 类型 | 描述 | 
|---|---|---|
| - alarmCode | string | 报警编码 | 
| - alarmDate | string | 报警时间,格式:时间戳、单位:秒 | 
| - picture | string | 报警图片,多张用逗号分隔,图片访问参考OSS方式 | 
| - pictureSize | string | 报警图片大小 | 
消息体示例:
{
    "category": "business",
    "info": {
        "alarmCode": "6a94284e-b9d3-4e5d-8ca5-4adaaa2240cb",
        "alarmDate": "1573291062",
        "picture": "bc32fbcc-6b1b-11e9-8837-000000000000/20190507/1/dsf_ef7e93bf-7069-11e9-aff7-000000000000_22381627_22580725.jpg",
        "pictureSize": ""
    },
    "method": "vms.notifyAlarmPicture",
    "subsystem": "admin"
}
事件method
vms.handleAlarm
事件类型
business
字段说明
| 参数 | 类型 | 描述 | 
|---|---|---|
| method | string | 固定值:vms.handleAlarm | 
| subsystem | string | 固定值:evo-event | 
| id | number | 消息id | 
| category | string | 固定值:business | 
| info | HandleAlarmVO | 报警处理信息 | 
HandleAlarmVO
| 字段 | 必选 | 说明 | 类型 | 备注 | 
|---|---|---|---|---|
| alarmType | Y | 报警类型 | string | |
| alarmCode | Y | 报警编码 | string | |
| handleStat | Y | 处理状态 | string | 1处理中,2已处理,3误报,4忽略,0未处理 | 
| handleUser | Y | 处理人 | String | |
| handleDate | Y | 处理时间戳 | string | 单位秒 | 
| handleMessage | N | 处理内容 | string | |
| alarmDate | Y | 报警时间戳单位秒 | string | 单位秒 | 
消息体示例:
{
     "id":1,//id序号
    "category": "business",//固定
    "method": "vms.handleAlarm",//固定
    "info": {
        "alarmType": 3,
        "alarmCode": "410775B3-397C-634F-ADF3-34411861B2A3",
        "handleStat": 1,
        "handleUser":"system",
        "handleDate":1547014708,
        "handleMessage":"",
        "alarmDate":1547014706
    },
    "domainId":"",
    "subsystem":"evo-event"//子系统名称
}