Set StartsAt to time of first firing state

This commit is contained in:
Fabian Reinartz 2015-12-14 12:00:44 +01:00
parent e34f0fd0b5
commit e4fabe135a

View file

@ -227,7 +227,7 @@ func (m *Manager) sendAlertNotifications(rule *AlertingRule, timestamp model.Tim
} }
alerts = append(alerts, &model.Alert{ alerts = append(alerts, &model.Alert{
StartsAt: aa.ActiveSince.Time(), StartsAt: aa.ActiveSince.Time().Add(rule.holdDuration),
Labels: labels, Labels: labels,
Annotations: annotations, Annotations: annotations,
GeneratorURL: m.externalURL.String() + strutil.GraphLinkForExpression(rule.vector.String()), GeneratorURL: m.externalURL.String() + strutil.GraphLinkForExpression(rule.vector.String()),