Clarifying operator values.
parent
0df37155eb
commit
10a0ea1c14
|
@ -9,8 +9,8 @@ const (
|
|||
GreaterThanEqual = "equal to or greater"
|
||||
Equal = "equal to"
|
||||
NotEqual = "not equal to"
|
||||
InsideRange = "is inside range"
|
||||
OutsideRange = "is outside range"
|
||||
InsideRange = "inside range"
|
||||
OutsideRange = "outside range"
|
||||
)
|
||||
|
||||
// kapaOperator converts UI strings to kapacitor operators
|
||||
|
|
|
@ -205,7 +205,7 @@ func TestThresholdInsideRange(t *testing.T) {
|
|||
Trigger: "threshold",
|
||||
Alerts: []string{"slack", "victorops", "email"},
|
||||
TriggerValues: chronograf.TriggerValues{
|
||||
Operator: "is inside range",
|
||||
Operator: "inside range",
|
||||
Value: "90",
|
||||
RangeValue: "100",
|
||||
},
|
||||
|
@ -352,7 +352,7 @@ func TestThresholdOutsideRange(t *testing.T) {
|
|||
Trigger: "threshold",
|
||||
Alerts: []string{"slack", "victorops", "email"},
|
||||
TriggerValues: chronograf.TriggerValues{
|
||||
Operator: "is outside range",
|
||||
Operator: "outside range",
|
||||
Value: "90",
|
||||
RangeValue: "100",
|
||||
},
|
||||
|
|
|
@ -1997,8 +1997,8 @@
|
|||
"equal to or greater",
|
||||
"equal to",
|
||||
"not equal to",
|
||||
"is inside range",
|
||||
"is outside range"
|
||||
"inside range",
|
||||
"outside range"
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
|
|
Loading…
Reference in New Issue