~~~[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 | 數據上報時間 |