用户工具

站点工具


wiki:v_callpol_notification_service

推送接口统一采用HTTP的方式向第三方平台推送数据接收数据的第三方平台需要实现相应的HTTP的接口将接口的地址设置到中消云平台这样平台就会向设置好的URL的路径发送HTTPPOST请求平台推送的数据都封装在了Body具体的Body内的参数见下面的描述


报警/操作/上下线通知服务

推送的目标服务器路径

第三方平台设置的推送地址

推送的功能:

当设备发生火警或故障报警时,平台接收到设备传过来的数据后,经过处理可以分发到第三方平台接口

推送的方法POST

推送的Body内的参数格式:

参数

类型

描述

logId

String

日志编号

projectId

String

项目编号

flag

Integer

标志位:0网关 1控制器 2设备(二次码) 3设备(通道)

gatewayName

String

网关名称

deviceId

String

设备编号

devicePosition

String

设备安装位置

deviceControllerId

Integer

控制器编号  -1代表没有控制器

deviceLoopId

Integer

设备回路号  -1代表没有回路

deviceAddrId

Integer

设备逻辑地址 -1代表没有逻辑地址

deviceChannelId

Integer

设备通道号  -1代表没有通道

deviceNumber

String

设备二次码

deviceType

Integer

设备类型编号,查看设备类型对照表

deviceState

Integer

设备详细状态(报警通知时不为null

deviceGroupState

Integer

设备状态分组(报警和上线离线通知时不为null

deviceEventType

Integer

事件类型编号,查看事件类型对照表(事件通知时不为null)

deviceEventName

String

事件类型名称(事件通知时不为null)

happenTime

String

发生的时间

optCode

Integer

操作码(操作通知时不为null

pushType

Integer

推送类型(1.报警状态通知 2.操作通知 3.上线离线通知  4.事件通知)


推送的示例:

访问的URL

用户设定的地址

Header的参数

    Content-Type: application/json

    Accept: application/json

Body内的数据

{

“logId”: “63f454550f2342a9985ca8bc447baa5b”,

“projectId”: “63f454550f2342a9985ca8bc447baa5c”,

“gatewayName”: “TX3252_20180412zxy001”,

“deviceId”: “63f454550f2342a9985ca8bc447baa5a”,

devicePosition 大厅,

“deviceControllerId”: 1,

“deviceLoopId”: 1,

“deviceAddrId”: 1,

“deviceChannelId”: 0,

“deviceNumber”: “55996638“,

“deviceType”: 78,

“deviceState”: 1,

“deviceGroupState”: 1,

“happenTime “: "1524895526000",

optCode”:1,

“pushType”:1

} 

wiki/v_callpol_notification_service.txt · 最后更改: 2023/09/08 06:37 由 admin