Automated cherry pick of #14979: fix(monitor,region,climc): use commonalert api for scaling policy (#14986)

* fix(monitor,region,climc): use commonalert api for scaling policy

* fix(monitor): use commonalert as nodealert's backend
This commit is contained in:
Zexi Li
2022-09-16 10:34:52 +08:00
committed by GitHub
parent b793051b36
commit ac3b54d7b3
21 changed files with 414 additions and 150 deletions
+5 -1
View File
@@ -38,7 +38,11 @@ var (
EvaluatorDefaultTypes = []string{"gt", "lt", "eq"}
EvaluatorRangedTypes = []string{"within_range", "outside_range"}
CommonAlertType = []string{monitor.CommonAlertNomalAlertType, monitor.CommonAlertSystemAlertType}
CommonAlertType = []string{
monitor.CommonAlertNomalAlertType,
monitor.CommonAlertSystemAlertType,
monitor.CommonAlertServiceAlertType,
}
CommonAlertReducerFieldOpts = []string{"/"}
CommonAlertNotifyTypes = []string{"email", "mobile", "dingtalk", "webconsole", "feishu"}