Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseWithDefaultAlert ¶
ParseWithDefaultAlert parses an Endpoint alert by using the provider's default alert as a baseline
Types ¶
type AlertProvider ¶
type AlertProvider interface { // IsValid returns whether the provider's configuration is valid IsValid() bool // GetDefaultAlert returns the provider's default alert configuration GetDefaultAlert() *alert.Alert // Send an alert using the provider Send(ep *endpoint.Endpoint, alert *alert.Alert, result *endpoint.Result, resolved bool) error }
AlertProvider is the interface that each provider should implement
Click to show internal directories.
Click to hide internal directories.