api

package
v1.0.20250928075430 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertEventHandler

type AlertEventHandler struct {
	// contains filtered or unexported fields
}

func (*AlertEventHandler) EventAlertClaim

func (a *AlertEventHandler) EventAlertClaim(ctx *gin.Context)

EventAlertClaim 认领指定的告警事件

func (*AlertEventHandler) EventAlertSilence

func (a *AlertEventHandler) EventAlertSilence(ctx *gin.Context)

EventAlertSilence 将指定告警事件设置为静默状态

func (*AlertEventHandler) EventAlertUnSilence

func (a *AlertEventHandler) EventAlertUnSilence(ctx *gin.Context)

EventAlertUnSilence 取消指定告警事件的静默状态

func (*AlertEventHandler) GetMonitorAlertEventList

func (a *AlertEventHandler) GetMonitorAlertEventList(ctx *gin.Context)

GetMonitorAlertEventList 获取告警事件列表

func (*AlertEventHandler) RegisterRouters

func (a *AlertEventHandler) RegisterRouters(server *gin.Engine)

type AlertPoolHandler

type AlertPoolHandler struct {
	// contains filtered or unexported fields
}

func (*AlertPoolHandler) CreateMonitorAlertManagerPool

func (a *AlertPoolHandler) CreateMonitorAlertManagerPool(ctx *gin.Context)

CreateMonitorAlertManagerPool 创建新的 AlertManager 集群池

func (*AlertPoolHandler) DeleteMonitorAlertManagerPool

func (a *AlertPoolHandler) DeleteMonitorAlertManagerPool(ctx *gin.Context)

DeleteMonitorAlertManagerPool 删除指定的 AlertManager 集群池

func (*AlertPoolHandler) GetMonitorAlertManagerPool

func (a *AlertPoolHandler) GetMonitorAlertManagerPool(ctx *gin.Context)

GetMonitorAlertManagerPool 获取指定的AlertManager集群池详情

func (*AlertPoolHandler) GetMonitorAlertManagerPoolList

func (a *AlertPoolHandler) GetMonitorAlertManagerPoolList(ctx *gin.Context)

GetMonitorAlertManagerPoolList 获取 AlertManager 集群池列表

func (*AlertPoolHandler) RegisterRouters

func (a *AlertPoolHandler) RegisterRouters(server *gin.Engine)

func (*AlertPoolHandler) UpdateMonitorAlertManagerPool

func (a *AlertPoolHandler) UpdateMonitorAlertManagerPool(ctx *gin.Context)

UpdateMonitorAlertManagerPool 更新现有的 AlertManager 集群池

type AlertRuleHandler

type AlertRuleHandler struct {
	// contains filtered or unexported fields
}

func (*AlertRuleHandler) CreateMonitorAlertRule

func (a *AlertRuleHandler) CreateMonitorAlertRule(ctx *gin.Context)

CreateMonitorAlertRule 创建新的告警规则

func (*AlertRuleHandler) DeleteMonitorAlertRule

func (a *AlertRuleHandler) DeleteMonitorAlertRule(ctx *gin.Context)

DeleteMonitorAlertRule 删除指定的告警规则

func (*AlertRuleHandler) GetMonitorAlertRule

func (a *AlertRuleHandler) GetMonitorAlertRule(ctx *gin.Context)

GetMonitorAlertRule 获取指定的告警规则详情

func (*AlertRuleHandler) GetMonitorAlertRuleList

func (a *AlertRuleHandler) GetMonitorAlertRuleList(ctx *gin.Context)

GetMonitorAlertRuleList 获取告警规则列表

func (*AlertRuleHandler) PromqlExprCheck

func (a *AlertRuleHandler) PromqlExprCheck(ctx *gin.Context)

PromqlExprCheck 检查 PromQL 表达式的合法性

func (*AlertRuleHandler) RegisterRouters

func (a *AlertRuleHandler) RegisterRouters(server *gin.Engine)

func (*AlertRuleHandler) UpdateMonitorAlertRule

func (a *AlertRuleHandler) UpdateMonitorAlertRule(ctx *gin.Context)

UpdateMonitorAlertRule 更新现有的告警规则

type MonitorConfigHandler

type MonitorConfigHandler struct {
	// contains filtered or unexported fields
}

func (*MonitorConfigHandler) CreateMonitorConfig

func (h *MonitorConfigHandler) CreateMonitorConfig(ctx *gin.Context)

CreateMonitorConfig 创建监控配置

func (*MonitorConfigHandler) DeleteMonitorConfig

func (h *MonitorConfigHandler) DeleteMonitorConfig(ctx *gin.Context)

DeleteMonitorConfig 删除监控配置

func (*MonitorConfigHandler) GetMonitorConfig

func (h *MonitorConfigHandler) GetMonitorConfig(ctx *gin.Context)

GetMonitorConfig 获取监控配置

func (*MonitorConfigHandler) GetMonitorConfigList

func (h *MonitorConfigHandler) GetMonitorConfigList(ctx *gin.Context)

GetMonitorConfigList 获取监控配置列表

func (*MonitorConfigHandler) RegisterRouters

func (h *MonitorConfigHandler) RegisterRouters(server *gin.Engine)

func (*MonitorConfigHandler) UpdateMonitorConfig

func (h *MonitorConfigHandler) UpdateMonitorConfig(ctx *gin.Context)

UpdateMonitorConfig 更新监控配置

type OnDutyGroupHandler

type OnDutyGroupHandler struct {
	// contains filtered or unexported fields
}

func NewOnDutyGroupHandler

func NewOnDutyGroupHandler(alertOnDutyService alert.AlertManagerOnDutyService) *OnDutyGroupHandler

func (*OnDutyGroupHandler) CreateMonitorOnDutyGroup

func (o *OnDutyGroupHandler) CreateMonitorOnDutyGroup(ctx *gin.Context)

CreateMonitorOnDutyGroup 创建新的值班组

func (*OnDutyGroupHandler) CreateMonitorOnDutyGroupChange

func (o *OnDutyGroupHandler) CreateMonitorOnDutyGroupChange(ctx *gin.Context)

CreateMonitorOnDutyGroupChange 创建值班组的换班记录

func (*OnDutyGroupHandler) DeleteMonitorOnDutyGroup

func (o *OnDutyGroupHandler) DeleteMonitorOnDutyGroup(ctx *gin.Context)

DeleteMonitorOnDutyGroup 删除指定的值班组

func (*OnDutyGroupHandler) GetMonitorOnDutyGroup

func (o *OnDutyGroupHandler) GetMonitorOnDutyGroup(ctx *gin.Context)

GetMonitorOnDutyGroup 获取指定的值班组信息

func (*OnDutyGroupHandler) GetMonitorOnDutyGroupChangeList

func (o *OnDutyGroupHandler) GetMonitorOnDutyGroupChangeList(ctx *gin.Context)

GetMonitorOnDutyGroupChangeList 获取值班组换班记录列表

func (*OnDutyGroupHandler) GetMonitorOnDutyGroupFuturePlan

func (o *OnDutyGroupHandler) GetMonitorOnDutyGroupFuturePlan(ctx *gin.Context)

GetMonitorOnDutyGroupFuturePlan 获取指定值班组的未来值班计划

func (*OnDutyGroupHandler) GetMonitorOnDutyGroupList

func (o *OnDutyGroupHandler) GetMonitorOnDutyGroupList(ctx *gin.Context)

GetMonitorOnDutyGroupList 获取值班组列表

func (*OnDutyGroupHandler) GetMonitorOnDutyHistory

func (o *OnDutyGroupHandler) GetMonitorOnDutyHistory(ctx *gin.Context)

GetMonitorOnDutyHistory 获取值班历史记录

func (*OnDutyGroupHandler) RegisterRouters

func (o *OnDutyGroupHandler) RegisterRouters(server *gin.Engine)

func (*OnDutyGroupHandler) UpdateMonitorOnDutyGroup

func (o *OnDutyGroupHandler) UpdateMonitorOnDutyGroup(ctx *gin.Context)

UpdateMonitorOnDutyGroup 更新值班组信息

type RecordRuleHandler

type RecordRuleHandler struct {
	// contains filtered or unexported fields
}

func NewRecordRuleHandler

func NewRecordRuleHandler(alertRecordService alertEventService.AlertManagerRecordService) *RecordRuleHandler

func (*RecordRuleHandler) CreateMonitorRecordRule

func (r *RecordRuleHandler) CreateMonitorRecordRule(ctx *gin.Context)

CreateMonitorRecordRule 创建新的预聚合规则

func (*RecordRuleHandler) DeleteMonitorRecordRule

func (r *RecordRuleHandler) DeleteMonitorRecordRule(ctx *gin.Context)

DeleteMonitorRecordRule 删除指定的预聚合规则

func (*RecordRuleHandler) GetMonitorRecordRule

func (r *RecordRuleHandler) GetMonitorRecordRule(ctx *gin.Context)

GetMonitorRecordRule 获取指定的预聚合规则详情

func (*RecordRuleHandler) GetMonitorRecordRuleList

func (r *RecordRuleHandler) GetMonitorRecordRuleList(ctx *gin.Context)

GetMonitorRecordRuleList 获取预聚合规则列表

func (*RecordRuleHandler) RegisterRouters

func (r *RecordRuleHandler) RegisterRouters(server *gin.Engine)

func (*RecordRuleHandler) UpdateMonitorRecordRule

func (r *RecordRuleHandler) UpdateMonitorRecordRule(ctx *gin.Context)

UpdateMonitorRecordRule 更新现有的预聚合规则

type ScrapeJobHandler

type ScrapeJobHandler struct {
	// contains filtered or unexported fields
}

func NewScrapeJobHandler

func NewScrapeJobHandler(scrapeJobService scrapeJobService.ScrapeJobService) *ScrapeJobHandler

func (*ScrapeJobHandler) CreateMonitorScrapeJob

func (s *ScrapeJobHandler) CreateMonitorScrapeJob(ctx *gin.Context)

CreateMonitorScrapeJob 创建监控采集 Job

func (*ScrapeJobHandler) DeleteMonitorScrapeJob

func (s *ScrapeJobHandler) DeleteMonitorScrapeJob(ctx *gin.Context)

DeleteMonitorScrapeJob 删除监控采集 Job

func (*ScrapeJobHandler) GetMonitorScrapeJobDetail

func (s *ScrapeJobHandler) GetMonitorScrapeJobDetail(ctx *gin.Context)

GetMonitorScrapeJobDetail 获取监控采集 Job 详情

func (*ScrapeJobHandler) GetMonitorScrapeJobList

func (s *ScrapeJobHandler) GetMonitorScrapeJobList(ctx *gin.Context)

GetMonitorScrapeJobList 获取监控采集 Job 列表

func (*ScrapeJobHandler) RegisterRouters

func (s *ScrapeJobHandler) RegisterRouters(server *gin.Engine)

func (*ScrapeJobHandler) UpdateMonitorScrapeJob

func (s *ScrapeJobHandler) UpdateMonitorScrapeJob(ctx *gin.Context)

UpdateMonitorScrapeJob 更新监控采集 Job

type ScrapePoolHandler

type ScrapePoolHandler struct {
	// contains filtered or unexported fields
}

func NewScrapePoolHandler

func NewScrapePoolHandler(l *zap.Logger, scrapePoolService scrapeJobService.ScrapePoolService) *ScrapePoolHandler

func (*ScrapePoolHandler) CreateMonitorScrapePool

func (s *ScrapePoolHandler) CreateMonitorScrapePool(ctx *gin.Context)

CreateMonitorScrapePool 创建监控采集池

func (*ScrapePoolHandler) DeleteMonitorScrapePool

func (s *ScrapePoolHandler) DeleteMonitorScrapePool(ctx *gin.Context)

DeleteMonitorScrapePool 删除监控采集池

func (*ScrapePoolHandler) GetMonitorScrapePoolDetail

func (s *ScrapePoolHandler) GetMonitorScrapePoolDetail(ctx *gin.Context)

GetMonitorScrapePoolDetail 获取监控采集池详情

func (*ScrapePoolHandler) GetMonitorScrapePoolList

func (s *ScrapePoolHandler) GetMonitorScrapePoolList(ctx *gin.Context)

GetMonitorScrapePoolList 获取监控采集池列表

func (*ScrapePoolHandler) RegisterRouters

func (s *ScrapePoolHandler) RegisterRouters(server *gin.Engine)

func (*ScrapePoolHandler) UpdateMonitorScrapePool

func (s *ScrapePoolHandler) UpdateMonitorScrapePool(ctx *gin.Context)

UpdateMonitorScrapePool 更新监控采集池

type SendGroupHandler

type SendGroupHandler struct {
	// contains filtered or unexported fields
}

func NewSendGroupHandler

func NewSendGroupHandler(alertSendService alertEventService.AlertManagerSendService) *SendGroupHandler

func (*SendGroupHandler) CreateMonitorSendGroup

func (s *SendGroupHandler) CreateMonitorSendGroup(ctx *gin.Context)

CreateMonitorSendGroup 创建新的发送组

func (*SendGroupHandler) DeleteMonitorSendGroup

func (s *SendGroupHandler) DeleteMonitorSendGroup(ctx *gin.Context)

DeleteMonitorSendGroup 删除指定的发送组

func (*SendGroupHandler) GetMonitorSendGroup

func (s *SendGroupHandler) GetMonitorSendGroup(ctx *gin.Context)

GetMonitorSendGroup 获取指定的发送组详情

func (*SendGroupHandler) GetMonitorSendGroupList

func (s *SendGroupHandler) GetMonitorSendGroupList(ctx *gin.Context)

GetMonitorSendGroupList 获取发送组列表

func (*SendGroupHandler) RegisterRouters

func (s *SendGroupHandler) RegisterRouters(server *gin.Engine)

func (*SendGroupHandler) UpdateMonitorSendGroup

func (s *SendGroupHandler) UpdateMonitorSendGroup(ctx *gin.Context)

UpdateMonitorSendGroup 更新现有的发送组

Jump to

Keyboard shortcuts

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