Skip to content

Commit b8b577e

Browse files
committed
fix(spelling): minor spelling fix in alerting code
1 parent 5a91d45 commit b8b577e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/services/alerting/conditions/evaluator.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type ThresholdEvaluator struct {
2828
Threshold float64
2929
}
3030

31-
func newThresholdEvaludator(typ string, model *simplejson.Json) (*ThresholdEvaluator, error) {
31+
func newThresholdEvaluator(typ string, model *simplejson.Json) (*ThresholdEvaluator, error) {
3232
params := model.Get("params").MustArray()
3333
if len(params) == 0 {
3434
return nil, alerting.ValidationError{Reason: "Evaluator missing threshold parameter"}
@@ -111,7 +111,7 @@ func NewAlertEvaluator(model *simplejson.Json) (AlertEvaluator, error) {
111111
}
112112

113113
if inSlice(typ, defaultTypes) {
114-
return newThresholdEvaludator(typ, model)
114+
return newThresholdEvaluator(typ, model)
115115
}
116116

117117
if inSlice(typ, rangedTypes) {
@@ -122,7 +122,7 @@ func NewAlertEvaluator(model *simplejson.Json) (AlertEvaluator, error) {
122122
return &NoDataEvaluator{}, nil
123123
}
124124

125-
return nil, alerting.ValidationError{Reason: "Evaludator invalid evaluator type: " + typ}
125+
return nil, alerting.ValidationError{Reason: "Evaluator invalid evaluator type: " + typ}
126126
}
127127

128128
func inSlice(a string, list []string) bool {

0 commit comments

Comments
 (0)