alertmanager

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: ISC Imports: 7 Imported by: 0

Documentation

Overview

Package alertmanager provides definitions and functionality related to Alertmanager notifications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler added in v0.10.0

type Handler struct {
	DP       api.NotificationDispatcher
	Settings HandlerSettings
}

Handler holds information for processing alerts received via Alertmanager.

func (*Handler) CreateAlert added in v0.10.0

func (h *Handler) CreateAlert(ctx *gin.Context)

CreateAlert godoc @Summary Create an Alert @Description Creates an alert that is send to the channel as a notification. This endpoint is compatible with alertmanager webhooks. @ID post-alert @Tags Alertmanager @Accept json @Produce json @Param token query string true "Channels token, can also be provieded in the header" @Param data body model.AlertmanagerWebhook true "alertmanager webhook call" @Success 200 {object} []model.Notification @Failure 500,404,403 "" @Router /alert [post]

type HandlerSettings added in v0.10.0

type HandlerSettings struct {
	TitleAnnotation   string
	MessageAnnotation string
}

HandlerSettings represents the settings for processing alerts received via Alertmanager.

Jump to

Keyboard shortcuts

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