alarm事件详情

接口说明

详情接口
推荐每秒调用不超过15次

接口配套版本信息

智能物联综合管理平台iConnection Center V5.0.6及以上版本

接口版本

1.0.0

接口URL

/evo-apigw/evo-event/1.0.0/alarm-record/detail?alarmCode=&dbType=&alarmDate=

请求Method

GET

数据提交格式

application/json

请求参数

参数名称必填类型描述
alarmCodestring报警编号
dbTypestring0代表普通查询,1代表云数据库查询,1.0.1版本新增
alarmDatestring报警记录分页查询中返回的报警时间,分表功能所加,1.0.2版本新增,形式:yyyy-MM-dd HH:mm:ss

请求参数示例
GET 请求 alarmCode与alarmDate需要做URLencode

 https://10.35.80.120/evo-apigw/evo-event/1.0.0/alarm-record/detail?alarmCode=%7B376FFB04-2DE8-A142-BDF7-DCB6494639C0%7D&dbType=0&alarmDate=2021-02-01%2001%3A03%3A00

返回参数

参数名称类型描述
successboolean接口返回是否成功
codestring错误码:0-为无错误,非0-为具体错误码
errMsgstring错误消息
dataObject数据对象

data数据对象

参数名称类型描述
idlong数据库id
alarmStatint报警状态
alarmTypeNamestring报警事件名称
alarmDatestring报警发生时间
alarmPositionstring报警发生地点
handleUserstring处理人
handleDatestring处理时间
handleStatstring处理状态
handleMessagestring处理内容
alarmCodestring报警编号
orgNamestring所属组织
linkNamesstring联动能力
picturesstring联动图片地址,图片相对地址,完整地址参考OSS方式
taskWebNamestring任务详情
alarmWebUrlstring参数
alarmAppUrlstring参数
taskWebUrlstring参数
taskAppUrlstring参数
codestring错误码
errMsgstring错误消息

返回参数示例(成功)

{
    "success": true,
    "data":  {
                "id": 2,
                "alarmStat": 1,
                "alarmTypeName": "设备断线",
                "alarmDate": "2019-11-22 14:23:26",
                "handleUser": null,
                "handleDate": "",
                "handleStat": 0,
                "handleMessage": null,
                "alarmCode": "{410775B3-397C-634F-ADF3-34411861B2A3}",
                "orgName": "根节点",
                "alarmPosition": "asdsa",
                "linkNames": null,
                "pictures": null,
                "taskWebName":'任务详情',
                "alarmWebUrl":"http://dfsd",
                "alarmAppUrl":"http://dfsd",
                "taskWebUrl":"http://dfsd",
                "taskAppUrl":"http://dfsd"
            },
    "code": "0",
    "errMsg": ""
}
alarm事件分页查询

接口说明

报警事件分页查询接口
推荐每秒调用不超过15次
统计配了报警预案或报警类型为保存配置的事件记录

接口配套版本信息

智能物联综合管理平台iConnection Center V5.0.6及以上版本

接口版本

1.2.0

接口URL

/evo-apigw/evo-event/1.2.0/alarm-record/page

请求Method

POST

数据提交格式

application/json

请求参数

字段说明类型长度是否必填备注
pageNum当前页int3Y
pageSize每页记录数int3Y
sort排序字段string32NalarmDate,handleUser,handleDate,orgName,alarmPosition
sortType排序方式string10NASC 升序 DESC 降序
alarmStat报警状态int1N1:报警产生,2:报警消失
handleStatList报警处理状态array51N1处理中,2已处理,3误报,4忽略,0未处理
orgCodeList所属组织编码array500N
nodeCodeList设备编码或通道编码array500N
alarmStartDateString报警开始时间string14N不传时间参数,表示查询当天凌晨到当前时间的数据,格式:yyyy-MM-dd HH:mm:ss
alarmEndDateString报警结束时间string14N格式:yyyy-MM-dd HH:mm:ss
handleStartDateString处理开始时间string14N格式:yyyy-MM-dd HH:mm:ss
handleEndDateString处理结束时间string14N格式:yyyy-MM-dd HH:mm:ss
alarmTypeList事件类型列表array500N枚举参考报警类型
alarmType事件类型int16N枚举参考报警类型
deviceCategory设备大类int3N枚举参考设备大类
isEvent报警预案标识int1N0:报警(配置报警预案),1:事件,设备或子系统上报的事件默认是1,配置报警预案后是0,空则查询报警与事件
alarmGradeList报警等级array3N枚举:1:严重;2:一般;3:轻微
language语言string32N不传从request里面拿,拿不到默认中文,中文:zh-cn
dbType查询类型int1N0代表普通查询,1代表云数据库查询,1.0.1版本新增

请求参数示例

 {
    "pageNum":1,
	"pageSize":10,
	"sort":"alarmDate",
	"sortType":"DESC",
	"alarmStat":1,
	"handleStatList":[1,2],
	"orgCodeList":["001"],
	"nodeCodeList":["1000000"],
	"alarmStartDateString":"2019-10-18 00:00:00",
	"alarmEndDateString":"2019-10-18 10:00:00",
	"handleStartDateString":"2019-10-18 10:00:00",
	"handleEndDateString":"2019-10-18 20:00:00",
	"alarmType":1,
	"deviceCategory":"1",
	"language":"zh-cn",
	"dbType":1
}

返回参数

字段说明类型备注
success成功与否booleantrue:成功;false:失败
data结果项object成功时有此字段
pageData分页结果array
code错误码string前端根据错误国际化翻译
errMsg错误消息string错误消息

pageData对象

字段说明类型备注
id数据库idlong
alarmDate报警发生时间string格式:yyyy-MM-dd HH:mm:ss
alarmPosition报警发生地点string
alarmTypeName报警事件名称string
alarmType事件类型int枚举参考报警类型
orgName所属组织string
alarmStat报警状态int1:报警产生,2:报警消失
handleStat处理状态int1处理中,2已处理,3误报,4忽略,0未处理
handleUser处理人string
handleDate处理时间string格式:yyyy-MM-dd HH:mm:ss
alarmCode报警编号string
linkNames联动能力string
alarmGrade报警等级int1:严重;2:一般;3:轻微
nodeCode报警源编码string
alarmPicture报警图片地址string图片相对地址,完整地址参考OSS方式
taskWebName任务详情string任务详情-供客户端使用
alarmWebUrl参数string
alarmAppUrl参数string空字符串
taskWebUrl参数string
taskAppUrl参数string空字符串

返回参数示例(成功)

{
    "success": true,
    "data": {
        "pageData": [
            {
                "id": 199,
                "alarmStat": 2,
                "alarmTypeName": "移动侦测",
                "alarmDate": "2020-04-10 16:12:19",
                "handleDate": "",
                "handleStat": 0,
                "alarmCode": "{0996F5D2-2C46-2A4E-AFB6-446AD30E0B56}",
                "orgName": "根节点",
                "alarmPosition": "10.35.163.67_视频通道_1",
                "alarmGrade": 2,
                "nodeCode": "1000012$1$0$0",
                "alarmType": 3,
                "isEvent": 1,
                "alarmPicture": "",
				"taskWebName":'任务详情',
				"alarmWebUrl":"http://dfsd",
    			"alarmAppUrl":"",
    			"taskWebUrl":"http://dfsd",
    			"taskAppUrl":""
            },
            {
                "id": 198,
                "alarmStat": 1,
                "alarmTypeName": "移动侦测",
                "alarmDate": "2020-04-10 16:11:46",
                "handleDate": "",
                "handleStat": 0,
                "alarmCode": "{249977A6-A5AA-114C-A712-03E8B7213BD8}",
                "orgName": "根节点",
                "alarmPosition": "10.35.163.67_视频通道_1",
                "alarmGrade": 2,
                "nodeCode": "1000012$1$0$0",
                "alarmType": 3,
                "isEvent": 1,
                "alarmPicture": "",
				"taskWebName":'任务详情',
				"alarmWebUrl":"http://dfsd",
    			"alarmAppUrl":"",
    			"taskWebUrl":"http://dfsd",
    			"taskAppUrl":""
            },
            {
                "id": 197,
                "alarmStat": 2,
                "alarmTypeName": "移动侦测",
                "alarmDate": "2020-04-10 16:11:03",
                "handleDate": "",
                "handleStat": 0,
                "alarmCode": "{81B21DB1-4F00-CB40-9BE4-3FDAD194B642}",
                "orgName": "根节点",
                "alarmPosition": "10.35.163.67_视频通道_1",
                "alarmGrade": 2,
                "nodeCode": "1000012$1$0$0",
                "alarmType": 3,
                "isEvent": 1,
                "alarmPicture": "",
				"taskWebName":'任务详情',
				"alarmWebUrl":"http://dfsd",
    			"alarmAppUrl":"",
    			"taskWebUrl":"http://dfsd",
    			"taskAppUrl":""
            },
            {
                "id": 196,
                "alarmStat": 1,
                "alarmTypeName": "移动侦测",
                "alarmDate": "2020-04-10 16:09:22",
                "handleDate": "",
                "handleStat": 0,
                "alarmCode": "{2098EB37-FF70-F547-8F56-F2EB4ED9975B}",
                "orgName": "根节点",
                "alarmPosition": "10.35.163.67_视频通道_1",
                "alarmGrade": 2,
                "nodeCode": "1000012$1$0$0",
                "alarmType": 3,
                "isEvent": 1,
                "alarmPicture": "",
				"taskWebName":'任务详情',
				"alarmWebUrl":"http://dfsd",
    			"alarmAppUrl":"",
    			"taskWebUrl":"http://dfsd",
    			"taskAppUrl":""
            },
            {
                "id": 195,
                "alarmStat": 2,
                "alarmTypeName": "移动侦测",
                "alarmDate": "2020-04-10 16:08:07",
                "handleDate": "",
                "handleStat": 0,
                "alarmCode": "{9739A5CF-A9D2-714B-8E60-4A0EE7016BB8}",
                "orgName": "根节点",
                "alarmPosition": "10.35.163.67_视频通道_1",
                "alarmGrade": 2,
                "nodeCode": "1000012$1$0$0",
                "alarmType": 3,
                "isEvent": 1,
                "alarmPicture": "",
				"taskWebName":'任务详情',
				"alarmWebUrl":"http://dfsd",
    			"alarmAppUrl":"",
    			"taskWebUrl":"http://dfsd",
    			"taskAppUrl":""
            },
            {
                "id": 194,
                "alarmStat": 1,
                "alarmTypeName": "移动侦测",
                "alarmDate": "2020-04-10 16:07:22",
                "handleDate": "",
                "handleStat": 0,
                "alarmCode": "{4A0F7110-57D3-9745-A340-11EBD0461F19}",
                "orgName": "根节点",
                "alarmPosition": "10.35.163.67_视频通道_1",
                "alarmGrade": 2,
                "nodeCode": "1000012$1$0$0",
                "alarmType": 3,
                "isEvent": 1,
                "alarmPicture": "",
				"taskWebName":'任务详情',
				"alarmWebUrl":"http://dfsd",
    			"alarmAppUrl":"",
    			"taskWebUrl":"http://dfsd",
    			"taskAppUrl":""
            },
            {
                "id": 193,
                "alarmStat": 2,
                "alarmTypeName": "移动侦测",
                "alarmDate": "2020-04-10 16:06:45",
                "handleDate": "",
                "handleStat": 0,
                "alarmCode": "{C3408910-782F-6E43-B4CD-DDF84CDA9147}",
                "orgName": "根节点",
                "alarmPosition": "10.35.163.67_视频通道_1",
                "alarmGrade": 2,
                "nodeCode": "1000012$1$0$0",
                "alarmType": 3,
                "isEvent": 1,
                "alarmPicture": "",
				"taskWebName":'任务详情',
				"alarmWebUrl":"http://dfsd",
    			"alarmAppUrl":"",
    			"taskWebUrl":"http://dfsd",
    			"taskAppUrl":""
            },
            {
                "id": 192,
                "alarmStat": 1,
                "alarmTypeName": "移动侦测",
                "alarmDate": "2020-04-10 16:06:15",
                "handleDate": "",
                "handleStat": 0,
                "alarmCode": "{2602053C-AB8D-5643-8A0F-2932F82043E9}",
                "orgName": "根节点",
                "alarmPosition": "10.35.163.67_视频通道_1",
                "alarmGrade": 2,
                "nodeCode": "1000012$1$0$0",
                "alarmType": 3,
                "isEvent": 1,
                "alarmPicture": "",
				"taskWebName":'任务详情',
				"alarmWebUrl":"http://dfsd",
    			"alarmAppUrl":"",
    			"taskWebUrl":"http://dfsd",
    			"taskAppUrl":""
            },
            {
                "id": 191,
                "alarmStat": 2,
                "alarmTypeName": "移动侦测",
                "alarmDate": "2020-04-10 16:05:02",
                "handleDate": "",
                "handleStat": 0,
                "alarmCode": "{EBB6ECBE-C22D-0841-A310-4473005446F4}",
                "orgName": "根节点",
                "alarmPosition": "10.35.163.67_视频通道_1",
                "alarmGrade": 2,
                "nodeCode": "1000012$1$0$0",
                "alarmType": 3,
                "isEvent": 1,
                "alarmPicture": "",
				"taskWebName":'任务详情',
				"alarmWebUrl":"http://dfsd",
    			"alarmAppUrl":"",
    			"taskWebUrl":"http://dfsd",
    			"taskAppUrl":""
            },
            {
                "id": 190,
                "alarmStat": 2,
                "alarmTypeName": "移动侦测",
                "alarmDate": "2020-04-10 16:04:24",
                "handleDate": "",
                "handleStat": 0,
                "alarmCode": "{530BB2E0-39F5-B740-B572-C2850B4B6080}",
                "orgName": "根节点",
                "alarmPosition": "10.35.163.67_视频通道_1",
                "alarmGrade": 2,
                "nodeCode": "1000012$1$0$0",
                "alarmType": 3,
                "isEvent": 1,
                "alarmPicture": "",
				"taskWebName":'任务详情',
				"alarmWebUrl":"http://dfsd",
    			"alarmAppUrl":"",
    			"taskWebUrl":"http://dfsd",
    			"taskAppUrl":""
            }
        ]
    },
    "code": "0",
    "errMsg": ""
}
alarm事件统计

接口说明

alarm事件统计接口,大数据接口,请合理使用
推荐每秒调用一次
统计配了报警预案或报警类型为保存配置的事件记录

接口配套版本信息

智能物联综合管理平台iConnection Center V5.0.6及以上版本

接口版本

1.0.0

接口URL

/evo-apigw/evo-event/1.0.0/alarm-record/count-num

请求Method

POST

数据提交格式

application/json

请求参数

字段说明类型长度是否必填备注
sort排序字段string32NalarmDate,handleUser,handleDate,orgName,alarmPosition
sortType排序方式string10NASC 升序 DESC 降序
alarmStat报警状态int1N1:报警产生,2:报警消失
handleStatList报警处理状态array5N1处理中,2已处理,3误报,4忽略,0未处理
orgCodeList所属组织编码array500N包含子组织编码
nodeCodeList设备编码或通道编码array500N
alarmStartDateString报警开始时间string14N不传时间参数,表示查询当天凌晨到当前时间的数据,格式:yyyy-MM-dd HH:mm:ss
alarmEndDateString报警结束时间string14N格式:yyyy-MM-dd HH:mm:ss
handleStartDateString处理开始时间string14N格式:yyyy-MM-dd HH:mm:ss
handleEndDateString处理结束时间string14N格式:yyyy-MM-dd HH:mm:ss
alarmTypeList事件类型列表array500N枚举参考报警类型
alarmType事件类型int16N枚举参考报警类型
deviceCategory设备大类int3N枚举参考设备大类
isEvent报警预案标识int1N0:报警(配置报警预案),1:事件,设备或子系统上报的事件默认是1,配置报警预案后是0,空则查询报警与事件
alarmGradeList报警等级array3N枚举:1:严重;2:一般;3:轻微
language语言string32N不传从request里面拿,拿不到默认中文,中文:zh-cn
dbType查询类型int1N0代表普通查询,1代表云数据库查询,1.0.1版本新增

请求参数示例-统计某一天报警已处理总数

{
	"handleStatList":[2],
	"alarmStartDateString":"2022-09-01 00:00:00",
	"alarmEndDateString":"2022-09-01 23:59:59",
	"isEvent":"0",
	"language":"zh-cn",
	"dbType":1
}

请求参数示例-统计某一天报警未处理总数

{
	"handleStatList":[0],
	"alarmStartDateString":"2022-09-01 00:00:00",
	"alarmEndDateString":"2022-09-01 23:59:59",
	"isEvent":"0",
	"language":"zh-cn",
	"dbType":1
}

请求参数示例-统计报警与事件已处理总数

{
	"handleStatList":[2],
	"alarmStartDateString":"2022-09-01 00:00:00",
	"alarmEndDateString":"2022-09-01 23:59:59"
}

请求参数示例-统计组织=001001下报警与事件未处理总数

{
	"orgCodeList":["001001"],
	"alarmStartDateString":"2022-09-01 00:00:00",
	"alarmEndDateString":"2022-09-01 23:59:59"
}

返回参数

字段说明类型备注
success成功与否booleantrue:成功;false:失败
code错误码string前端根据错误国际化翻译
errMsg错误消息string错误消息
data结果项TotalInfo成功时有此字段

TotalInfo

字段说明类型备注
value报警数量int成功时返回

返回参数示例(成功)

{
    "success": true,
    "data": {
        "value": 191
    },
    "code": "0",
    "errMsg": ""
}