根据组织权限过滤orgs设置下,nodeCodes必须送空数组,不能不送,具体参考示例
反之指定设备订阅报警,设置nodeCodes,且orgs必须送空数组,不能不送
orgs与nodeCodes是并集,不是交集
{
"param": {
"monitors": [
{
"monitor": "http://10.35.111.10:8010/eventReceiveMsg/save",
"monitorType": "url",
"events": [
{
"category": "alarm",
"subscribeAll": 1,
"domainSubscribe": 2,
"authorities": [
{
"types": [
"1000000"
],
"orgs": [
"001001",
"001003"
],
"nodeCodes": [
]
}
]
}
]
}
],
"subsystem": {
"subsystemType": 0,
"name": "10.35.111.10_8010",
"magic": "10.35.111.10_8010"
}
}
}
{
"param": {
"monitors": [
{
"monitor": "http://10.35.111.10:8010/eventReceiveMsg/save",
"monitorType": "url",
"events": [
{
"category": "alarm",
"subscribeAll": 1,
"domainSubscribe": 2,
"authorities": [
{
"types": [
"303","964","965","302","962","963"
]
}
]
}
]
}
],
"subsystem": {
"subsystemType": 0,
"name": "10.35.111.10_8010",
"magic": "10.35.111.10_8010"
}
}
}
{
"param": {
"monitors": [
{
"monitor": "http://10.35.111.10:8010/eventReceiveMsg/save",
"monitorType": "url",
"events": [
{
"category": "business",
"subscribeAll": 1,
"domainSubscribe": 2,
"authorities": [
{
"types": [
"car.capture"
]
}
]
}
]
}
],
"subsystem": {
"subsystemType": 0,
"name": "10.35.111.10_8010",
"magic": "10.35.111.10_8010"
}
}
}
开门类型type=51,代表合法刷开门、type=61,人脸合法开门; 如果需要其他开门类型,具体参考附录-数据字典-门禁开门类型
示例如下
{
"param": {
"monitors": [
{
"monitor": "http://10.35.111.10:8010/eventReceiveMsg/save",
"monitorType": "url",
"events": [
{
"category": "alarm",
"subscribeAll": 1,
"domainSubscribe": 2,
"authorities": [
{
"types": [
"51",
"61"
]
}
]
}
]
}
],
"subsystem": {
"subsystemType": 0,
"name": "10.35.111.10_8010",
"magic": "10.35.111.10_8010"
}
}
}
{
"param": {
"monitors": [
{
"monitor": "http://10.35.111.10:8010/eventReceiveMsg/save",
"monitorType": "url",
"events": [
{
"category": "alarm",
"subscribeAll": 1,
"domainSubscribe": 2,
"authorities": [
{
"types": [
"51",
"61"
]
}
]
},
{
"category": "business",
"subscribeAll": 1,
"domainSubscribe": 2,
"authorities": [
{
"types": [
"car.capture"
]
}
]
}
]
}
],
"subsystem": {
"subsystemType": 0,
"name": "10.35.111.10_8010",
"magic": "10.35.111.10_8010"
}
}
}
{
"param": {
"monitors": [{
"monitor": "http://10.35.111.10:8010/eventReceiveMsg/save",
"monitorType": "url",
"events": [{
"category": "state",
"subscribeAll": 1,
"domainSubscribe": 2,
"authorities": [{
"nodeCodes": [
"1000001",
"1000002$1$0$1"
],
"orgs": []
}]
}]
}],
"subsystem": {
"subsystemType": 0,
"name": "10.35.111.10_8010",
"magic": "10.35.111.10_8010"
}
}
}
{
"param": {
"monitors": [
{
"monitor": "http://10.35.111.10:8010/eventReceiveMsg/save",
"monitorType": "url",
"events": [
{
"category": "perception",
"subscribeAll": 1,
"domainSubscribe":2,
"authorities":[
{
"types":[
"pmms.perception.msg",
"reportGPSInfo"
]
}
]
}
]
}
],
"subsystem": {
"subsystemType": 0,
"name": "10.35.111.10_8010",
"magic": "10.35.111.10_8010"
}
}
}
回调三方接口消息体通用协议说明参考API文档-事件中心-事件订阅-通用事件回调消息体格式说明
报警的扩展信息(extend对象)需提供报警类型(alarmType)联系在线客服提供
业务信息(info对象)由各个业务子系统自定义,字段不统一,具体参考附录-事件列表-xxx模块定义的协议说明