1、增加告警参数门限的单位
This commit is contained in:
parent
bbbe8585e7
commit
a5dd6e6b7d
@ -49,3 +49,7 @@ beidou-ehm 9912 健康检查、SIM卡检查
|
||||
1)解算数据表增加一个字段:是否稳定。每次滤波时检查滤波窗口内的原始数据时间,当前时间距离最后一条时间超过滤波窗口的2/3时,稳定字段设为true,否则false
|
||||
2)每次推送只推送稳定字段为true的结果
|
||||
例如滤波窗口是24小时,最近一次上线时间是0点,13点上线,则将开始上线时间置为13点,第二天13点开始推送
|
||||
|
||||
2025-04
|
||||
1)告警参数配置增加一个字段:单位
|
||||
2)健康检查增加连续无有效解的时长之和统计
|
||||
@ -65,6 +65,7 @@ public class WarningCfg {
|
||||
String typename;
|
||||
Integer value;
|
||||
Short level;
|
||||
String unitname;
|
||||
|
||||
public static List<String> parseCode(int code){
|
||||
List<String> warningInfo = new ArrayList<>();
|
||||
|
||||
@ -251,6 +251,7 @@ CREATE TABLE IF NOT EXISTS `warningcfg` (
|
||||
`level` smallint DEFAULT 0,
|
||||
`typename` varchar(50) NOT NULL,
|
||||
`value` int NOT NULL,
|
||||
`unitname` varchar(32) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
|
||||
@ -41,6 +41,12 @@
|
||||
<input type="number" name="value" id="value" placeholder="请输入门限值" value="" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label required">单位</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="unitname" id="unitname" value="" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label required">告警等级</label>
|
||||
<div class="layui-input-inline">
|
||||
@ -98,6 +104,7 @@
|
||||
warning_type.attr('readonly',true);
|
||||
$('#value').val(data.value);
|
||||
$('#level').val(data.level);
|
||||
$('#unitname').val(data.unitname);
|
||||
form.render();
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -46,6 +46,7 @@
|
||||
{field: 'type', title: '告警类型'},
|
||||
{field: 'typename', title: '类型描述'},
|
||||
{field: 'value', title: '告警门限'},
|
||||
{field: 'unitname', title: '单位'},
|
||||
{field: 'level', title: '告警级别'},
|
||||
{title: '操作', toolbar: '#currentTableBar', align: "center", minWidth: 120}
|
||||
]],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user