[monitor] 告警结构duration持续时间变更为times触发次数

This commit is contained in:
tomsun28
2021-12-13 15:22:16 +08:00
parent e22dcf30bc
commit caf3e9fef9
8 changed files with 51 additions and 49 deletions

View File

@@ -6,6 +6,6 @@ export class Alert {
priority: number = 2;
status!: number;
content!: string;
duration!: number;
times!: number;
gmtCreate!: number;
}

View File

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