mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-28 03:23:25 +08:00
feat(monitor): support threashold range (#23853)
This commit is contained in:
@@ -34,7 +34,7 @@ type CommonAlertTerm struct {
|
||||
Comparator string
|
||||
Threshold float64
|
||||
Filters []monitorapi.MetricQueryTag
|
||||
FieldOpt string
|
||||
FieldOpt monitorapi.CommonAlertFieldOpt
|
||||
Name string
|
||||
ConditionType string
|
||||
From string
|
||||
@@ -92,7 +92,7 @@ func newCommonAlertQuery(tem *CommonAlertTerm) *monitorapi.CommonAlertQuery {
|
||||
Operator: tem.Operator,
|
||||
}
|
||||
if tem.FieldOpt != "" {
|
||||
commonAlert.FieldOpt = monitorapi.CommonAlertFieldOpt_Division
|
||||
commonAlert.FieldOpt = monitorapi.CommonAlertFieldOptDivision
|
||||
}
|
||||
if len(tem.ConditionType) != 0 {
|
||||
commonAlert.ConditionType = tem.ConditionType
|
||||
|
||||
Reference in New Issue
Block a user