Documentation ¶
Index ¶
- func NotifyTargetsWithRetry(targets []string, retryInterval time.Duration, retryTimeout time.Duration, ...) error
- func NotifyWatcher(watchdir string, targets []string, retryInterval time.Duration, ...) (error, chan bool)
- func NotifyWithRetry(target Target, targetUrl string, retryInterval time.Duration, ...) error
- func UsageInfo() string
- func ValidateTargetUrl(targetUrl string) error
- type CreateUploader
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotifyTargetsWithRetry ¶
func NotifyWatcher ¶
func NotifyWithRetry ¶
func ValidateTargetUrl ¶
Types ¶
type CreateUploader ¶
type Target ¶
type Target interface { Notifier(targetUrl string, alerts ...*types.Alert) (bool, error) UsageInfo() string }
Notifier notifies about alerts under constraints of the given context. It returns an error if unsuccessful and a flag whether the error is recoverable. This information is useful for a retry logic.
func NewNotifier ¶
Click to show internal directories.
Click to hide internal directories.