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
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
HandlerSettings represents the settings for processing alerts received via Alertmanager.