File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
pkg/services/alerting/conditions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ type ThresholdEvaluator struct {
28
28
Threshold float64
29
29
}
30
30
31
- func newThresholdEvaludator (typ string , model * simplejson.Json ) (* ThresholdEvaluator , error ) {
31
+ func newThresholdEvaluator (typ string , model * simplejson.Json ) (* ThresholdEvaluator , error ) {
32
32
params := model .Get ("params" ).MustArray ()
33
33
if len (params ) == 0 {
34
34
return nil , alerting.ValidationError {Reason : "Evaluator missing threshold parameter" }
@@ -111,7 +111,7 @@ func NewAlertEvaluator(model *simplejson.Json) (AlertEvaluator, error) {
111
111
}
112
112
113
113
if inSlice (typ , defaultTypes ) {
114
- return newThresholdEvaludator (typ , model )
114
+ return newThresholdEvaluator (typ , model )
115
115
}
116
116
117
117
if inSlice (typ , rangedTypes ) {
@@ -122,7 +122,7 @@ func NewAlertEvaluator(model *simplejson.Json) (AlertEvaluator, error) {
122
122
return & NoDataEvaluator {}, nil
123
123
}
124
124
125
- return nil , alerting.ValidationError {Reason : "Evaludator invalid evaluator type: " + typ }
125
+ return nil , alerting.ValidationError {Reason : "Evaluator invalid evaluator type: " + typ }
126
126
}
127
127
128
128
func inSlice (a string , list []string ) bool {
You can’t perform that action at this time.
0 commit comments