alertmanager

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: ISC Imports: 7 Imported by: 0

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]

type AlertmanagerHandlerSettings

type AlertmanagerHandlerSettings struct {
	TitleAnnotation   string
	MessageAnnotation string
}

Jump to

Keyboard shortcuts

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