Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeProviderDefaultAlertIntoEndpointAlert ¶ added in v5.14.0
MergeProviderDefaultAlertIntoEndpointAlert parses an Endpoint alert by using the provider's default alert as a baseline
Types ¶
type AlertProvider ¶
type AlertProvider interface { // Validate the provider's configuration Validate() error // Send an alert using the provider Send(ep *endpoint.Endpoint, alert *alert.Alert, result *endpoint.Result, resolved bool) error // GetDefaultAlert returns the provider's default alert configuration GetDefaultAlert() *alert.Alert // ValidateOverrides validates the alert's provider override and, if present, the group override ValidateOverrides(group string, alert *alert.Alert) error }
AlertProvider is the interface that each provider should implement
Click to show internal directories.
Click to hide internal directories.