Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
50f1882f
Commit
50f1882f
authored
May 06, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加告警统计信息日志
parent
5b615cc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
181 additions
and
9 deletions
+181
-9
base-manager/doc/api.md
base-manager/doc/api.md
+172
-0
base-manager/src/main/java/com/mortals/xhx/module/window/model/WindowEntity.java
...ava/com/mortals/xhx/module/window/model/WindowEntity.java
+9
-9
No files found.
base-manager/doc/api.md
View file @
50f1882f
...
...
@@ -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": "操作成功"
}
```
## 字典附录
...
...
base-manager/src/main/java/com/mortals/xhx/module/window/model/WindowEntity.java
View file @
50f1882f
...
...
@@ -108,31 +108,31 @@ public class WindowEntity extends WindowVo {
this
.
siteId
=
null
;
this
.
siteName
=
null
;
this
.
siteName
=
""
;
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
.
duty
=
null
;
this
.
duty
=
0
;
this
.
dutyContent
=
""
;
this
.
dutyEnglish
=
""
;
this
.
summary
=
null
;
this
.
summary
=
""
;
this
.
building
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment