Set StartsAt to time of first firing state

pull/1266/head
Fabian Reinartz 2015-12-14 12:00:44 +01:00
parent e34f0fd0b5
commit e4fabe135a
1 changed files with 1 additions and 1 deletions

View File

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