[monitor] 告警结构duration持续时间变更为times触发次数
This commit is contained in:
@@ -6,6 +6,6 @@ export class Alert {
|
||||
priority: number = 2;
|
||||
status!: number;
|
||||
content!: string;
|
||||
duration!: number;
|
||||
times!: number;
|
||||
gmtCreate!: number;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user