alertmanager

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Webhook

type Webhook struct {
	webhook.Message
	// contains filtered or unexported fields
}

Webhook is wrapper for the Alertmanager webhook.message adding retry counter.

func NewWebhookFromAlertmanagerMessage

func NewWebhookFromAlertmanagerMessage(message webhook.Message) *Webhook

NewWebhookFromAlertmanagerMessage returns new Webhook wrapping the original Alertmanager webhook.message.

func (*Webhook) Retry

func (w *Webhook) Retry()

Retry increments number of retries for the Webhook.

func (*Webhook) RetryCount

func (w *Webhook) RetryCount() int

RetryCount returns number of retries for the given alertmanager message.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL