alertmanager

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResolvedStatus = "resolved"
	FiringStatus   = "firing"
)

Variables

This section is empty.

Functions

func AlertmanagerHandler

func AlertmanagerHandler(ctx context.Context, amr *AlertmanagerReconciler) http.HandlerFunc

Types

type Alert

type Alert struct {
	Status      string
	Labels      map[string]string
	Annotations map[string]string
	StartsAt    string
	Fingerprint string
}

type AlertmanagerReconciler

type AlertmanagerReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

func (*AlertmanagerReconciler) HandleWebhook

func (amr *AlertmanagerReconciler) HandleWebhook(ctx context.Context, payload *WebhookPayload) error

func (*AlertmanagerReconciler) Reconcile

func (r *AlertmanagerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*AlertmanagerReconciler) SetupWithManager

func (r *AlertmanagerReconciler) SetupWithManager(mgr ctrl.Manager) error

type WebhookPayload

type WebhookPayload struct {
	Version  string
	Status   string
	Receiver string
	Alerts   []*Alert
}

Jump to

Keyboard shortcuts

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