Documentation ¶
Index ¶
- func AlertingAlreadyEnabledError() error
- func AlertingNotEnabledError() error
- func DisableApplicationAlerting(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func DisableEnvironmentAlerting(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func EnableApplicationAlerting(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func EnableEnvironmentAlerting(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func EnvironmentRouteAccessCheck(handler models.RadixHandlerFunc) models.RadixHandlerFunc
- func GetApplicationAlertingConfig(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func GetEnvironmentAlertingConfig(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func InvalidAlertError(alert string) error
- func InvalidAlertReceiverError(alert, receiver string) error
- func InvalidSlackURLError(underlyingError error) error
- func InvalidSlackURLSchemeError() error
- func MultipleAlertingConfigurationsError() error
- func NewAlertingController() models.Controller
- func UpdateApplicationAlertingConfig(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func UpdateEnvironmentAlertingConfig(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func UpdateReceiverSecretNotDefinedError(receiverName string) error
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlertingAlreadyEnabledError ¶
func AlertingAlreadyEnabledError() error
func AlertingNotEnabledError ¶
func AlertingNotEnabledError() error
func DisableApplicationAlerting ¶
DisableApplicationAlerting disables alerting for application
func DisableEnvironmentAlerting ¶
DisableEnvironmentAlerting disables alerting for application environment
func EnableApplicationAlerting ¶
EnableApplicationAlerting enables alerting for application
func EnableEnvironmentAlerting ¶
EnableEnvironmentAlerting enables alerting for application environment
func EnvironmentRouteAccessCheck ¶
func EnvironmentRouteAccessCheck(handler models.RadixHandlerFunc) models.RadixHandlerFunc
EnvironmentRouteAccessCheck gets appName and envName from route and verifies that environment exists Returns 404 NotFound if environment is not defined, otherwise calls handler
func GetApplicationAlertingConfig ¶
GetApplicationAlertingConfig returns alerts configuration
func GetEnvironmentAlertingConfig ¶
GetEnvironmentAlertingConfig returns alerts configuration
func InvalidAlertError ¶
func InvalidSlackURLError ¶
func InvalidSlackURLSchemeError ¶
func InvalidSlackURLSchemeError() error
func MultipleAlertingConfigurationsError ¶
func MultipleAlertingConfigurationsError() error
func NewAlertingController ¶
func NewAlertingController() models.Controller
NewAlertingController Constructor
func UpdateApplicationAlertingConfig ¶
func UpdateApplicationAlertingConfig(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
UpdateApplicationAlertingConfig Configures alert settings
func UpdateEnvironmentAlertingConfig ¶
func UpdateEnvironmentAlertingConfig(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
UpdateEnvironmentAlertingConfig Configures alert settings
Types ¶
type Handler ¶
type Handler interface { GetAlertingConfig() (*alertModels.AlertingConfig, error) EnableAlerting() (*alertModels.AlertingConfig, error) DisableAlerting() (*alertModels.AlertingConfig, error) UpdateAlertingConfig(config alertModels.UpdateAlertingConfig) (*alertModels.AlertingConfig, error) }