alerting

package
v1.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlertingAlreadyEnabledError

func AlertingAlreadyEnabledError() error

func AlertingNotEnabledError

func AlertingNotEnabledError() error

func DisableApplicationAlerting

func DisableApplicationAlerting(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

DisableApplicationAlerting disables alerting for application

func DisableEnvironmentAlerting

func DisableEnvironmentAlerting(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

DisableEnvironmentAlerting disables alerting for application environment

func EnableApplicationAlerting

func EnableApplicationAlerting(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

EnableApplicationAlerting enables alerting for application

func EnableEnvironmentAlerting

func EnableEnvironmentAlerting(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

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

func GetApplicationAlertingConfig(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

GetApplicationAlertingConfig returns alerts configuration

func GetEnvironmentAlertingConfig

func GetEnvironmentAlertingConfig(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

GetEnvironmentAlertingConfig returns alerts configuration

func InvalidAlertError

func InvalidAlertError(alert string) error

func InvalidAlertReceiverError

func InvalidAlertReceiverError(alert, receiver string) error

func InvalidSlackURLError

func InvalidSlackURLError(underlyingError error) error

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

func UpdateReceiverSecretNotDefinedError

func UpdateReceiverSecretNotDefinedError(receiverName string) error

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)
}

func NewApplicationHandler

func NewApplicationHandler(accounts models.Accounts, appName string) Handler

func NewEnvironmentHandler

func NewEnvironmentHandler(accounts models.Accounts, appName, envName string) Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL