文档
测试

告警事件分页查询

GET
/api/v1/alarm_list

接口描述

告警事件分页查询

请求参数

参数名
类型
描述
必填
limit
Int
每页显示个数限制 示例: 15
必填
page
Int
当前页数 示例: 1
必填

响应参数

参数名
类型
描述
必填
retcode
Int
返回代码即为返回HTTP头部的状态码 http status 示例:200
必填
status
String
返回信息 示例: 'success'
必填
result
Array
告警事件列表数据
必填
id
Int
事件ID
必填
occurrent_time
String
发生时间 格式: yyyy-mm-dd hh:mm:ss 示例: '2020-07-21 15:01:23'
必填
position
String
发生位置(GT为长度,SMT为防区)
必填
device_num
String
设备号
必填
device_type
String
设备类型
必填
line_name
String
线路名称(责任区名称)
必填
person1
String
责任人1姓名
必填
person2
String
责任人2姓名
必填
longitude
string
经度
必填
latitude
string
纬度
必填
pageTotal
Int
总页数
必填

说明 / 示例

```js // Request Data { "limit": 15,#必传 "page": 1,#必传 "starttime": "2020-07-21 15:01:23", "endtime": "2020-07-21 15:01:23", ... 其他可能传的字段 ... } // Response Data //成功响应 { "limit": "3",#每页数量 "page": "2",#第2页 "pageTotal": 3,总页数 "result": [ { "id": 6,#索引 "device_id": "GT-SMT-201421-234567",#设备号 "alarm_id": "20191120105655010002",#报警号 "begin_time": "2019-11-20T10:56:55",#报警开始时间 "end_time": "2019-11-27T10:56:56",#报警结束时间 "device_type": 0,#设备类型 "position": "设备GT-SMT-201421-234567第2防区,防区代码GT-SMT-201421-2345672",#告警位置描述 "alarm_type": 3,#报警类型 "continue_time": 1,#告警持续时间 "frequency": 1000,#触发频率 "trusted": "100.000000",#置信度 "longitude": "0.000000000000",#经度 "latitude": "0.000000000000",纬度 "result": "0",#告警处理结果 "real": "1",#真实事件 "control": 0,#受控状态 "confirm": 0,#是否确认 "name": "0",#确认人姓名 "phone": "0",#确认人联系方式 "level": 0,#确认人等级 "text": "0",#未受控必填 "img_link": "0"现场图片地址 }, { "id": 7, "device_id": "GT-SMT-201321-234567", "alarm_id": "20191120105655010002", "begin_time": "2019-11-20T10:56:55", "end_time": "2019-11-28T10:56:56", "device_type": 0, "position": "设备GT-SMT-201321-234567第2防区,防区代码GT-SMT-201321-2345672", "alarm_type": 3, "continue_time": 1, "frequency": 1000, "trusted": "100.000000", "longitude": "0.000000000000", "latitude": "0.000000000000", "result": "0", "real": "1", "control": 0, "confirm": 0, "name": "0", "phone": "0", "level": 0, "text": "0", "img_link": "0" }, { "id": 8, "device_id": "GT-SMT-201221-234567", "alarm_id": "20191120105655010002", "begin_time": "2019-11-14T10:56:55", "end_time": "2019-11-20T10:56:56", "device_type": 0, "position": "设备GT-SMT-201221-234567第2防区,防区代码GT-SMT-201221-2345672", "alarm_type": 3, "continue_time": 1, "frequency": 1000, "trusted": "100.000000", "longitude": "0.000000000000", "latitude": "0.000000000000", "result": "0", "real": "1", "control": 0, "confirm": 0, "name": "0", "phone": "0", "level": 0, "text": "0", "img_link": "0" } ] }