mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
chore(victorops): remove unused code
This commit is contained in:
@@ -27,12 +27,9 @@ func NewVictoropsNotifier(model *models.AlertNotification) (alerting.Notifier, e
|
|||||||
return nil, alerting.ValidationError{Reason: "Could not find victorops url property in settings"}
|
return nil, alerting.ValidationError{Reason: "Could not find victorops url property in settings"}
|
||||||
}
|
}
|
||||||
|
|
||||||
alertOnExecError := model.Settings.Get("alertOnExecError").MustBool()
|
|
||||||
|
|
||||||
return &VictoropsNotifier{
|
return &VictoropsNotifier{
|
||||||
NotifierBase: NewNotifierBase(model.Id, model.IsDefault, model.Name, model.Type, model.Settings),
|
NotifierBase: NewNotifierBase(model.Id, model.IsDefault, model.Name, model.Type, model.Settings),
|
||||||
URL: url,
|
URL: url,
|
||||||
AlertOnExecError: alertOnExecError,
|
|
||||||
log: log.New("alerting.notifier.victorops"),
|
log: log.New("alerting.notifier.victorops"),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
@@ -43,7 +40,6 @@ func NewVictoropsNotifier(model *models.AlertNotification) (alerting.Notifier, e
|
|||||||
type VictoropsNotifier struct {
|
type VictoropsNotifier struct {
|
||||||
NotifierBase
|
NotifierBase
|
||||||
URL string
|
URL string
|
||||||
AlertOnExecError bool
|
|
||||||
log log.Logger
|
log log.Logger
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user