Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseWithDefaultAlert ¶
ParseWithDefaultAlert parses a service 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 // ToCustomAlertProvider converts the provider into a custom.AlertProvider ToCustomAlertProvider(service *core.Service, alert *alert.Alert, result *core.Result, resolved bool) *custom.AlertProvider // GetDefaultAlert returns the provider's default alert configuration GetDefaultAlert() *alert.Alert }
AlertProvider is the interface that each providers should implement
Click to show internal directories.
Click to hide internal directories.