diff --git a/alerting/alert/type.go b/alerting/alert/type.go index db0d0c53..78c92fa8 100644 --- a/alerting/alert/type.go +++ b/alerting/alert/type.go @@ -26,6 +26,9 @@ const ( // TypeMessagebird is the Type for the messagebird alerting provider TypeMessagebird Type = "messagebird" + // TypeOpsgenie is the Type for the opsgenie alerting provider + TypeOpsgenie Type = "opsgenie" + // TypePagerDuty is the Type for the pagerduty alerting provider TypePagerDuty Type = "pagerduty" @@ -40,7 +43,4 @@ const ( // TypeTwilio is the Type for the twilio alerting provider TypeTwilio Type = "twilio" - - // TypeOpsgenie is the Type for the opsgenie alerting provider - TypeOpsgenie Type = "opsgenie" ) diff --git a/alerting/config.go b/alerting/config.go index 43a22ab0..82e4ba4a 100644 --- a/alerting/config.go +++ b/alerting/config.go @@ -41,6 +41,9 @@ type Config struct { // Messagebird is the configuration for the messagebird alerting provider Messagebird *messagebird.AlertProvider `yaml:"messagebird,omitempty"` + // Opsgenie is the configuration for the opsgenie alerting provider + Opsgenie *opsgenie.AlertProvider `yaml:"opsgenie,omitempty"` + // PagerDuty is the configuration for the pagerduty alerting provider PagerDuty *pagerduty.AlertProvider `yaml:"pagerduty,omitempty"` @@ -55,9 +58,6 @@ type Config struct { // Twilio is the configuration for the twilio alerting provider Twilio *twilio.AlertProvider `yaml:"twilio,omitempty"` - - // Opsgenie is the configuration for the opsgenie alerting provider - Opsgenie *opsgenie.AlertProvider `yaml:"opsgenie,omitempty"` } // GetAlertingProviderByAlertType returns an provider.AlertProvider by its corresponding alert.Type