Commit 83e90325 by bergquist

chore(victorops): remove unused code

parent a6ea2f4f
...@@ -27,13 +27,10 @@ func NewVictoropsNotifier(model *models.AlertNotification) (alerting.Notifier, e ...@@ -27,13 +27,10 @@ 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
} }
...@@ -42,9 +39,8 @@ func NewVictoropsNotifier(model *models.AlertNotification) (alerting.Notifier, e ...@@ -42,9 +39,8 @@ func NewVictoropsNotifier(model *models.AlertNotification) (alerting.Notifier, e
// Victorops specifications (http://victorops.force.com/knowledgebase/articles/Integration/Alert-Ingestion-API-Documentation/) // Victorops specifications (http://victorops.force.com/knowledgebase/articles/Integration/Alert-Ingestion-API-Documentation/)
type VictoropsNotifier struct { type VictoropsNotifier struct {
NotifierBase NotifierBase
URL string URL string
AlertOnExecError bool log log.Logger
log log.Logger
} }
// Notify sends notification to Victorops via POST to URL endpoint // Notify sends notification to Victorops via POST to URL endpoint
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment