alerthandler

package
v1.24.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertsHandler

type AlertsHandler struct {
	base.BaseHandler
}

func (*AlertsHandler) AddToBlackList

func (h *AlertsHandler) AddToBlackList(c *gin.Context)

AlertHistory 加入/更新告警黑名单

@Tags			Alert
@Summary		加入/更新告警黑名单
@Description	加入/更新告警黑名单
@Accept			json
@Produce		json
@Param			form	body		models.AlertInfo						true	"黑名单详情,必传AlertInfo.Fingerprint"
@Success		200		{object}	handlers.ResponseStruct{Data=string}	"resp"
@Router			/v1/alerts/blacklist [post]
@Security		JWT

func (*AlertsHandler) ListBlackList

func (h *AlertsHandler) ListBlackList(c *gin.Context)

AlertHistory 告警黑名单

@Tags			Alert
@Summary		告警黑名单
@Description	告警黑名单
@Accept			json
@Produce		json
@Param			cluster		query		string																					false	"集群, 默认所有"
@Param			namespace	query		string																					false	"命名空间, 默认所有"
@Param			page		query		int																						false	"page"
@Param			size		query		int																						false	"size"
@Success		200			{object}	handlers.ResponseStruct{Data=response.Page[models.AlertInfo]{List=[]models.AlertInfo}}	"resp"
@Router			/v1/alerts/blacklist [get]
@Security		JWT

func (*AlertsHandler) RegistRouter

func (h *AlertsHandler) RegistRouter(rg *gin.RouterGroup)

func (*AlertsHandler) RemoveInBlackList

func (h *AlertsHandler) RemoveInBlackList(c *gin.Context)

AlertHistory 移除告警黑名单

@Tags			Alert
@Summary		移除告警黑名单
@Description	移除告警黑名单
@Accept			json
@Produce		json
@Param			fingerprint	path		string									true	"告警指纹"
@Success		200			{object}	handlers.ResponseStruct{Data=string}	"resp"
@Router			/v1/alerts/blacklist/{fingerprint} [delete]
@Security		JWT

Jump to

Keyboard shortcuts

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