Documentation ¶
Index ¶
- type AlertEventHandler
- func (a *AlertEventHandler) BatchEventAlertSilence(ctx *gin.Context)
- func (a *AlertEventHandler) EventAlertClaim(ctx *gin.Context)
- func (a *AlertEventHandler) EventAlertSilence(ctx *gin.Context)
- func (a *AlertEventHandler) EventAlertUnSilence(ctx *gin.Context)
- func (a *AlertEventHandler) GetMonitorAlertEventList(ctx *gin.Context)
- func (a *AlertEventHandler) RegisterRouters(server *gin.Engine)
- type AlertPoolHandler
- func (a *AlertPoolHandler) CreateMonitorAlertManagerPool(ctx *gin.Context)
- func (a *AlertPoolHandler) DeleteMonitorAlertManagerPool(ctx *gin.Context)
- func (a *AlertPoolHandler) GetMonitorAlertManagerPoolList(ctx *gin.Context)
- func (a *AlertPoolHandler) RegisterRouters(server *gin.Engine)
- func (a *AlertPoolHandler) UpdateMonitorAlertManagerPool(ctx *gin.Context)
- type AlertRuleHandler
- func (a *AlertRuleHandler) BatchDeleteMonitorAlertRule(ctx *gin.Context)
- func (a *AlertRuleHandler) BatchEnableSwitchMonitorAlertRule(ctx *gin.Context)
- func (a *AlertRuleHandler) CreateMonitorAlertRule(ctx *gin.Context)
- func (a *AlertRuleHandler) DeleteMonitorAlertRule(ctx *gin.Context)
- func (a *AlertRuleHandler) EnableSwitchMonitorAlertRule(ctx *gin.Context)
- func (a *AlertRuleHandler) GetMonitorAlertRuleList(ctx *gin.Context)
- func (a *AlertRuleHandler) PromqlExprCheck(ctx *gin.Context)
- func (a *AlertRuleHandler) RegisterRouters(server *gin.Engine)
- func (a *AlertRuleHandler) UpdateMonitorAlertRule(ctx *gin.Context)
- type ConfigYamlHandler
- func (c *ConfigYamlHandler) GetMonitorAlertManagerYaml(ctx *gin.Context)
- func (c *ConfigYamlHandler) GetMonitorPrometheusAlertRuleYaml(ctx *gin.Context)
- func (c *ConfigYamlHandler) GetMonitorPrometheusRecordYaml(ctx *gin.Context)
- func (c *ConfigYamlHandler) GetMonitorPrometheusYaml(ctx *gin.Context)
- func (c *ConfigYamlHandler) RegisterRouters(server *gin.Engine)
- type OnDutyGroupHandler
- func (o *OnDutyGroupHandler) CreateMonitorOnDutyGroup(ctx *gin.Context)
- func (o *OnDutyGroupHandler) CreateMonitorOnDutyGroupChange(ctx *gin.Context)
- func (o *OnDutyGroupHandler) DeleteMonitorOnDutyGroup(ctx *gin.Context)
- func (o *OnDutyGroupHandler) GetMonitorOnDutyGroup(ctx *gin.Context)
- func (o *OnDutyGroupHandler) GetMonitorOnDutyGroupFuturePlan(ctx *gin.Context)
- func (o *OnDutyGroupHandler) GetMonitorOnDutyGroupList(ctx *gin.Context)
- func (o *OnDutyGroupHandler) RegisterRouters(server *gin.Engine)
- func (o *OnDutyGroupHandler) UpdateMonitorOnDutyGroup(ctx *gin.Context)
- type RecordRuleHandler
- func (r *RecordRuleHandler) BatchDeleteMonitorRecordRule(ctx *gin.Context)
- func (r *RecordRuleHandler) BatchEnableSwitchMonitorRecordRule(ctx *gin.Context)
- func (r *RecordRuleHandler) CreateMonitorRecordRule(ctx *gin.Context)
- func (r *RecordRuleHandler) DeleteMonitorRecordRule(ctx *gin.Context)
- func (r *RecordRuleHandler) EnableSwitchMonitorRecordRule(ctx *gin.Context)
- func (r *RecordRuleHandler) GetMonitorRecordRuleList(ctx *gin.Context)
- func (r *RecordRuleHandler) RegisterRouters(server *gin.Engine)
- func (r *RecordRuleHandler) UpdateMonitorRecordRule(ctx *gin.Context)
- type ScrapeJobHandler
- func (s *ScrapeJobHandler) CreateMonitorScrapeJob(ctx *gin.Context)
- func (s *ScrapeJobHandler) DeleteMonitorScrapeJob(ctx *gin.Context)
- func (s *ScrapeJobHandler) GetMonitorScrapeJobList(ctx *gin.Context)
- func (s *ScrapeJobHandler) RegisterRouters(server *gin.Engine)
- func (s *ScrapeJobHandler) UpdateMonitorScrapeJob(ctx *gin.Context)
- type ScrapePoolHandler
- func (s *ScrapePoolHandler) CreateMonitorScrapePool(ctx *gin.Context)
- func (s *ScrapePoolHandler) DeleteMonitorScrapePool(ctx *gin.Context)
- func (s *ScrapePoolHandler) GetMonitorScrapePoolList(ctx *gin.Context)
- func (s *ScrapePoolHandler) RegisterRouters(server *gin.Engine)
- func (s *ScrapePoolHandler) UpdateMonitorScrapePool(ctx *gin.Context)
- type SendGroupHandler
- func (s *SendGroupHandler) CreateMonitorSendGroup(ctx *gin.Context)
- func (s *SendGroupHandler) DeleteMonitorSendGroup(ctx *gin.Context)
- func (s *SendGroupHandler) GetMonitorSendGroup(ctx *gin.Context)
- func (s *SendGroupHandler) GetMonitorSendGroupList(ctx *gin.Context)
- func (s *SendGroupHandler) RegisterRouters(server *gin.Engine)
- func (s *SendGroupHandler) UpdateMonitorSendGroup(ctx *gin.Context)
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 NewAlertEventHandler ¶
func NewAlertEventHandler(l *zap.Logger, alertEventService alertEventService.AlertManagerEventService) *AlertEventHandler
func (*AlertEventHandler) BatchEventAlertSilence ¶
func (a *AlertEventHandler) BatchEventAlertSilence(ctx *gin.Context)
BatchEventAlertSilence 批量设置告警事件为静默状态
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 NewAlertPoolHandler ¶
func NewAlertPoolHandler(l *zap.Logger, alertPoolService alertEventService.AlertManagerPoolService) *AlertPoolHandler
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) 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 NewAlertRuleHandler ¶
func NewAlertRuleHandler(l *zap.Logger, alertRuleService alertService.AlertManagerRuleService) *AlertRuleHandler
func (*AlertRuleHandler) BatchDeleteMonitorAlertRule ¶
func (a *AlertRuleHandler) BatchDeleteMonitorAlertRule(ctx *gin.Context)
BatchDeleteMonitorAlertRule 批量删除告警规则
func (*AlertRuleHandler) BatchEnableSwitchMonitorAlertRule ¶
func (a *AlertRuleHandler) BatchEnableSwitchMonitorAlertRule(ctx *gin.Context)
BatchEnableSwitchMonitorAlertRule 批量切换告警规则的启用状态
func (*AlertRuleHandler) CreateMonitorAlertRule ¶
func (a *AlertRuleHandler) CreateMonitorAlertRule(ctx *gin.Context)
CreateMonitorAlertRule 创建新的告警规则
func (*AlertRuleHandler) DeleteMonitorAlertRule ¶
func (a *AlertRuleHandler) DeleteMonitorAlertRule(ctx *gin.Context)
DeleteMonitorAlertRule 删除指定的告警规则
func (*AlertRuleHandler) EnableSwitchMonitorAlertRule ¶
func (a *AlertRuleHandler) EnableSwitchMonitorAlertRule(ctx *gin.Context)
EnableSwitchMonitorAlertRule 切换告警规则的启用状态
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 ConfigYamlHandler ¶
type ConfigYamlHandler struct {
// contains filtered or unexported fields
}
func NewConfigYamlHandler ¶
func NewConfigYamlHandler(l *zap.Logger, yamlService yamlService.ConfigYamlService) *ConfigYamlHandler
func (*ConfigYamlHandler) GetMonitorAlertManagerYaml ¶
func (c *ConfigYamlHandler) GetMonitorAlertManagerYaml(ctx *gin.Context)
GetMonitorAlertManagerYaml 获取单个 AlertManager 配置文件
func (*ConfigYamlHandler) GetMonitorPrometheusAlertRuleYaml ¶
func (c *ConfigYamlHandler) GetMonitorPrometheusAlertRuleYaml(ctx *gin.Context)
GetMonitorPrometheusAlertRuleYaml 获取单个 Prometheus 告警配置规则文件
func (*ConfigYamlHandler) GetMonitorPrometheusRecordYaml ¶
func (c *ConfigYamlHandler) GetMonitorPrometheusRecordYaml(ctx *gin.Context)
GetMonitorPrometheusRecordYaml 获取单个 Prometheus 记录配置文件
func (*ConfigYamlHandler) GetMonitorPrometheusYaml ¶
func (c *ConfigYamlHandler) GetMonitorPrometheusYaml(ctx *gin.Context)
GetMonitorPrometheusYaml 获取单个 Prometheus 配置文件
func (*ConfigYamlHandler) RegisterRouters ¶
func (c *ConfigYamlHandler) RegisterRouters(server *gin.Engine)
type OnDutyGroupHandler ¶
type OnDutyGroupHandler struct {
// contains filtered or unexported fields
}
func NewOnDutyGroupHandler ¶
func NewOnDutyGroupHandler(l *zap.Logger, alertOnDutyService alertEventService.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) GetMonitorOnDutyGroupFuturePlan ¶
func (o *OnDutyGroupHandler) GetMonitorOnDutyGroupFuturePlan(ctx *gin.Context)
GetMonitorOnDutyGroupFuturePlan 获取指定值班组的未来值班计划
func (*OnDutyGroupHandler) GetMonitorOnDutyGroupList ¶
func (o *OnDutyGroupHandler) GetMonitorOnDutyGroupList(ctx *gin.Context)
GetMonitorOnDutyGroupList 获取值班组列表
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(l *zap.Logger, alertRecordService alertEventService.AlertManagerRecordService) *RecordRuleHandler
func (*RecordRuleHandler) BatchDeleteMonitorRecordRule ¶
func (r *RecordRuleHandler) BatchDeleteMonitorRecordRule(ctx *gin.Context)
BatchDeleteMonitorRecordRule 批量删除预聚合规则
func (*RecordRuleHandler) BatchEnableSwitchMonitorRecordRule ¶
func (r *RecordRuleHandler) BatchEnableSwitchMonitorRecordRule(ctx *gin.Context)
BatchEnableSwitchMonitorRecordRule 批量切换预聚合规则的启用状态
func (*RecordRuleHandler) CreateMonitorRecordRule ¶
func (r *RecordRuleHandler) CreateMonitorRecordRule(ctx *gin.Context)
CreateMonitorRecordRule 创建新的预聚合规则
func (*RecordRuleHandler) DeleteMonitorRecordRule ¶
func (r *RecordRuleHandler) DeleteMonitorRecordRule(ctx *gin.Context)
DeleteMonitorRecordRule 删除指定的预聚合规则
func (*RecordRuleHandler) EnableSwitchMonitorRecordRule ¶
func (r *RecordRuleHandler) EnableSwitchMonitorRecordRule(ctx *gin.Context)
EnableSwitchMonitorRecordRule 切换预聚合规则的启用状态
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(l *zap.Logger, 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) 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) 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(l *zap.Logger, 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)
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 更新现有的发送组