Commit 50f1882f authored by 赵啸非's avatar 赵啸非

添加告警统计信息日志

parent 5b615cc1
...@@ -13034,6 +13034,178 @@ dict|object|字典对象 ...@@ -13034,6 +13034,178 @@ dict|object|字典对象
} }
``` ```
### 查看设备告警日志统计
**请求URL:** m/device/alarm/info/stats
**请求方式:** POST
**内容类型:** application/json;charset=utf-8
**简要描述:** 查看告警统计信息
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:------
siteId|Long|是|站点ID
**请求样例:**
```
{
"siteId": 1
}
```
**响应参数:**
参数名称 |参数类型|描述
:---|:---|:-------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
 deviceTotalCount|Integer|总设备数量
 siteSize|Integer|监控站点数量
 todayAlarmInfoCount|Integer|今日告警次数
 todayAlarmDeviceCount|Integer|今日告警设备数量
 siteDeviceCollect|object|分站点统计设备数量
 siteDeviceAlarmCollect|object|分站点统计设备今日告警数量
 deviceConnTypeCollect|object|设备类型分布
 alarmTypeCollect|object|告警类型统计分布
 deviceFirmCollect|object|设备厂家排名
 alarmLevelCollect|object|今日告警等级分布
 deviceAlarmMapInfoList|arrays|实施告警消息
  id|Long|告警消息ID
  alarmType|String|告警消息类型
  count|int|告警次数
  deviceName|String|设备名称
**响应消息样例:**
```
{
"data": {
"deviceTotalCount": 17,
"siteSize": 3,
"siteDeviceCollect": {
"四川恒升信达科技有限公司": 17
},
"siteDeviceAlarmCollect": {
"四川恒升信达科技有限公司": 426
},
"deviceConnTypeCollect": {
"直连设备": "100.00"
},
"deviceFirmCollect": {
"未知厂商": "100.00"
},
"todayAlarmInfoCount": 453,
"todayAlarmDeviceCount": 426,
"alarmTypeCollect": {
"离线": "100.00"
},
"alarmLevelCollect": {
"一般": "100.00"
},
"deviceAlarmMapInfoList": [
{
"alarmType": "离线",
"alarmTime": "15:03:07",
"count": 2,
"deviceName": ""
},
{
"alarmType": "离线",
"alarmTime": "15:01:43",
"count": 2,
"deviceName": ""
},
{
"alarmType": "离线",
"alarmTime": "14:11:48",
"count": 1,
"deviceName": ""
},
{
"alarmType": "离线",
"alarmTime": "13:55:29",
"count": 1,
"deviceName": ""
},
{
"alarmType": "离线",
"alarmTime": "13:23:12",
"count": 2,
"deviceName": ""
},
{
"alarmType": "离线",
"alarmTime": "13:21:47",
"count": 2,
"deviceName": ""
},
{
"alarmType": "离线",
"alarmTime": "12:22:07",
"count": 3,
"deviceName": ""
},
{
"alarmType": "离线",
"alarmTime": "12:20:42",
"count": 3,
"deviceName": ""
},
{
"alarmType": "离线",
"alarmTime": "12:09:13",
"count": 2,
"deviceName": ""
},
{
"alarmType": "离线",
"alarmTime": "12:07:48",
"count": 2,
"deviceName": ""
},
{
"alarmType": "离线",
"alarmTime": "11:51:25",
"count": 8,
"deviceName": ""
},
{
"alarmType": "离线",
"alarmTime": "11:22:48",
"count": 1,
"deviceName": ""
},
{
"alarmType": "离线",
"alarmTime": "11:18:18",
"count": 1,
"deviceName": ""
},
{
"alarmType": "离线",
"alarmTime": "10:45:59",
"count": 3,
"deviceName": ""
},
{
"alarmType": "离线",
"alarmTime": "10:18:10",
"count": 2,
"deviceName": ""
}
],
"siteId": 1
},
"code": 1,
"msg": "操作成功"
}
```
## 字典附录 ## 字典附录
......
...@@ -108,31 +108,31 @@ public class WindowEntity extends WindowVo { ...@@ -108,31 +108,31 @@ public class WindowEntity extends WindowVo {
this.siteId = null; this.siteId = null;
this.siteName = null; this.siteName = "";
this.deptId = null; this.deptId = null;
this.deptName = null; this.deptName = "";
this.name = null; this.name = "";
this.englishName = null; this.englishName = "";
this.region = null; this.region = "";
this.englishRegion = null; this.englishRegion = "";
this.fromnum = null; this.fromnum = "";
this.hongqi = 1; this.hongqi = 1;
this.duty = null; this.duty = 0;
this.dutyContent = ""; this.dutyContent = "";
this.dutyEnglish = ""; this.dutyEnglish = "";
this.summary = null; this.summary = "";
this.building = 1; this.building = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment