feat(alerting): progress on email notifications

This commit is contained in:
Torkel Ödegaard
2016-07-26 12:29:52 +02:00
parent 6cb1dafb1d
commit 0d9b98da6d
21 changed files with 118 additions and 106 deletions
+3 -3
View File
@@ -17,7 +17,8 @@ type ResultHandlerImpl struct {
func NewResultHandler() *ResultHandlerImpl {
return &ResultHandlerImpl{
log: log.New("alerting.resultHandler"),
log: log.New("alerting.resultHandler"),
notifier: NewRootNotifier(),
}
}
@@ -47,7 +48,6 @@ func (handler *ResultHandlerImpl) Handle(result *AlertResultContext) {
}
result.Rule.State = newState
//handler.log.Debug("will notify about new state", "new state", result.State)
//handler.notifier.Notify(result)
handler.notifier.Notify(result)
}
}