mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-25 01:13:40 +01:00
style(alerting): Alphabetically sort Matrix provider
This commit is contained in:
parent
2fb807632c
commit
04a682eddc
@ -17,6 +17,9 @@ const (
|
|||||||
// TypeGoogleChat is the Type for the googlechat alerting provider
|
// TypeGoogleChat is the Type for the googlechat alerting provider
|
||||||
TypeGoogleChat Type = "googlechat"
|
TypeGoogleChat Type = "googlechat"
|
||||||
|
|
||||||
|
// TypeMatrix is the Type for the matrix alerting provider
|
||||||
|
TypeMatrix Type = "matrix"
|
||||||
|
|
||||||
// TypeMattermost is the Type for the mattermost alerting provider
|
// TypeMattermost is the Type for the mattermost alerting provider
|
||||||
TypeMattermost Type = "mattermost"
|
TypeMattermost Type = "mattermost"
|
||||||
|
|
||||||
@ -40,7 +43,4 @@ const (
|
|||||||
|
|
||||||
// TypeOpsgenie is the Type for the opsgenie alerting provider
|
// TypeOpsgenie is the Type for the opsgenie alerting provider
|
||||||
TypeOpsgenie Type = "opsgenie"
|
TypeOpsgenie Type = "opsgenie"
|
||||||
|
|
||||||
// TypeMatrix is the Type for the matrix alerting provider
|
|
||||||
TypeMatrix Type = "matrix"
|
|
||||||
)
|
)
|
||||||
|
@ -32,6 +32,9 @@ type Config struct {
|
|||||||
// Email is the configuration for the email alerting provider
|
// Email is the configuration for the email alerting provider
|
||||||
Email *email.AlertProvider `yaml:"email,omitempty"`
|
Email *email.AlertProvider `yaml:"email,omitempty"`
|
||||||
|
|
||||||
|
// Matrix is the configuration for the matrix alerting provider
|
||||||
|
Matrix *matrix.AlertProvider `yaml:"matrix,omitempty"`
|
||||||
|
|
||||||
// Mattermost is the configuration for the mattermost alerting provider
|
// Mattermost is the configuration for the mattermost alerting provider
|
||||||
Mattermost *mattermost.AlertProvider `yaml:"mattermost,omitempty"`
|
Mattermost *mattermost.AlertProvider `yaml:"mattermost,omitempty"`
|
||||||
|
|
||||||
@ -55,9 +58,6 @@ type Config struct {
|
|||||||
|
|
||||||
// Opsgenie is the configuration for the opsgenie alerting provider
|
// Opsgenie is the configuration for the opsgenie alerting provider
|
||||||
Opsgenie *opsgenie.AlertProvider `yaml:"opsgenie,omitempty"`
|
Opsgenie *opsgenie.AlertProvider `yaml:"opsgenie,omitempty"`
|
||||||
|
|
||||||
// Matrix is the configuration for the matrix alerting provider
|
|
||||||
Matrix *matrix.AlertProvider `yaml:"matrix,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetAlertingProviderByAlertType returns an provider.AlertProvider by its corresponding alert.Type
|
// GetAlertingProviderByAlertType returns an provider.AlertProvider by its corresponding alert.Type
|
||||||
|
Loading…
Reference in New Issue
Block a user