|
@@ -3,12 +3,13 @@ package notifiers
|
|
|
import (
|
|
import (
|
|
|
"encoding/json"
|
|
"encoding/json"
|
|
|
"fmt"
|
|
"fmt"
|
|
|
|
|
+ "time"
|
|
|
|
|
+
|
|
|
"github.com/grafana/grafana/pkg/bus"
|
|
"github.com/grafana/grafana/pkg/bus"
|
|
|
"github.com/grafana/grafana/pkg/log"
|
|
"github.com/grafana/grafana/pkg/log"
|
|
|
m "github.com/grafana/grafana/pkg/models"
|
|
m "github.com/grafana/grafana/pkg/models"
|
|
|
"github.com/grafana/grafana/pkg/services/alerting"
|
|
"github.com/grafana/grafana/pkg/services/alerting"
|
|
|
"github.com/grafana/grafana/pkg/setting"
|
|
"github.com/grafana/grafana/pkg/setting"
|
|
|
- "time"
|
|
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
func init() {
|
|
@@ -35,7 +36,7 @@ func NewGoogleChatNotifier(model *m.AlertNotification) (alerting.Notifier, error
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return &GoogleChatNotifier{
|
|
return &GoogleChatNotifier{
|
|
|
- NotifierBase: NewNotifierBase(model.Id, model.IsDefault, model.Name, model.Type, model.Settings),
|
|
|
|
|
|
|
+ NotifierBase: NewNotifierBase(model),
|
|
|
Url: url,
|
|
Url: url,
|
|
|
log: log.New("alerting.notifier.googlechat"),
|
|
log: log.New("alerting.notifier.googlechat"),
|
|
|
}, nil
|
|
}, nil
|