Documentation
¶
Overview ¶
Package alert contains the interfaces, structs, and logic that form the basis of protonds alert plugin subsystem.
Protond currently implements the following alert plugins:
- Noop
- A no alert which just noops the event emission.
- Http
- An http alert that allows for emitting events to the specified endpoint for alerting.
Index ¶
Constants ¶
View Source
const (
// NoopAlert defines a noop alert plugin used for testing.
NoopAlert = "noop"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert interface { // Emit should send the event to the configured backend alert sink. Emit(event *common.Event) // Name returns the name of the alert plugin. Name() string }
Alert is the interface that plugins must adhere to for operation as an alert plugin.
Click to show internal directories.
Click to hide internal directories.