Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertmanagerHandler ¶
type AlertmanagerHandler struct {
DP api.NotificationDispatcher
Settings AlertmanagerHandlerSettings
}
func (*AlertmanagerHandler) CreateAlert ¶
func (h *AlertmanagerHandler) 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]
Click to show internal directories.
Click to hide internal directories.