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

This commit is contained in:
bergquist
2017-12-13 19:17:00 +01:00
parent 3691faf136
commit ade734168c
@@ -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)