alertmanager/manager/notify.go

22 lines
275 B
Go
Raw Normal View History

package manager
import (
"github.com/prometheus/log"
)
type Notifier interface {
Name() string
Send(...interface{})
}
type LogNotifier struct {
}
func (*LogNotifier) Name() string {
return "default"
}
func (*LogNotifier) Send(v ...interface{}) {
log.Infoln(v...)
}