[web-app] 告警配置列表,新增告警定义,修改告警定义功能

This commit is contained in:
tomsun28
2021-12-12 18:32:23 +08:00
parent 5dd417f369
commit 441df8f3c2
6 changed files with 218 additions and 14 deletions

View File

@@ -3,12 +3,12 @@ export class AlertDefine {
app!: string;
metric!: string;
field!: string;
preset!: boolean;
preset: boolean = false;
expr!: string;
// 告警级别 0:高-emergency-紧急告警-红色 1:中-critical-严重告警-橙色 2:低-warning-警告告警-黄色
priority!: number;
duration!: number;
enable!: boolean;
priority: number = 2;
duration: number = 600;
enable: boolean = true;
template!: string;
creator!: string;
modifier!: string;