Просмотр исходного кода

alertmanager: endAt should only be used if we have the correct value

bergquist 8 лет назад
Родитель
Сommit
ade734168c
1 измененных файлов с 0 добавлено и 2 удалено
  1. 0 2
      pkg/services/alerting/notifiers/alertmanager.go

+ 0 - 2
pkg/services/alerting/notifiers/alertmanager.go

@@ -55,8 +55,6 @@ func (this *AlertmanagerNotifier) Notify(evalContext *alerting.EvalContext) erro
 	for _, match := range evalContext.EvalMatches {
 		alertJSON := simplejson.New()
 		alertJSON.Set("startsAt", evalContext.StartTime.UTC().Format(time.RFC3339))
-		// Rule state should always be alerting if notifying.
-		alertJSON.Set("endsAt", "0001-01-01T00:00:00Z")
 
 		if ruleUrl, err := evalContext.GetRuleUrl(); err == nil {
 			alertJSON.Set("generatorURL", ruleUrl)