~~~[api]
get:/index/warn/warn
int:limit=15#每页显示数量
int:page=1#页码
<<<
success
{
"code": 0,
"msg": "获取成功",
"count": 3,
"data": [{
"id": 17,
"device_id": "测试03",
"variable_id": "温度传感01",
"trigger_id": 10,
"identifier": "Temperature",
"content": "设备温度不能大于20度;设备目前温度22.9度",
"status": "未处理",
"process_time": null,
"gmtCreate": "1970-01-01 08:00:00",
"create_time": "2020-04-24 10:22:02",
"class_name": "app\\common\\model\\Warn"
}, {
"id": 16,
"device_id": "测试03",
"variable_id": "温度传感01",
"trigger_id": 10,
"identifier": "Temperature",
"content": "设备温度不能大于20度;设备目前温度22.9度",
"status": "未处理",
"process_time": null,
"gmtCreate": "1970-01-01 08:00:00",
"create_time": "2020-04-21 17:43:29",
"class_name": "app\\common\\model\\Warn"
}, {
"id": 13,
"device_id": "巨型破碎机",
"variable_id": null,
"trigger_id": 5,
"identifier": "Temperature",
"content": "设备温度不能大于20度;设备目前温度29.8度",
"status": "未处理",
"process_time": null,
"gmtCreate": "1970-01-01 08:00:00",
"create_time": "2020-04-10 17:32:27",
"class_name": "app\\common\\model\\Warn"
}]
}
<<<
error
{
"code": 1,
"msg": "请先登录"
}
~~~
| 字段 | 说明 |
| --- | --- |
| id | 记录ID |
| device_id | 设备名称 |
| info | 日志详情 |
| variable_id | 变量名称 |
| identifier | 标签 |
| status_text | 状态文本 |
| content | 描述 |
| status | 状态文本 |
| gmtCreate | 数据上报时间 |