Clarifying operator values.

pull/725/head
Hunter Trujillo 2017-01-06 10:45:54 -07:00
parent 0df37155eb
commit 10a0ea1c14
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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",
},

View File

@ -1997,8 +1997,8 @@
"equal to or greater",
"equal to",
"not equal to",
"is inside range",
"is outside range"
"inside range",
"outside range"
]
},
"value": {