Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertManagerEvent ¶
type AlertManagerEvent struct { Receiver string `json:"receiver"` Status string `json:"status"` Alerts []Alert `json:"alerts"` GroupLabels map[string]string `json:"groupLabels"` CommonLabels map[string]string `json:"commonLabels"` CommonAnnotations map[string]string `json:"commonAnnotations"` TruncatedAlerts int `json:"truncatedAlerts"` }
type AlertManagerHandler ¶
type AlertManagerHandler struct{}
type Service ¶
type Service interface { // InputAlertManager receive AlertManager alarm events // Deprecated: use alertinput.ProcessAlertEvents instead InputAlertManager(req *request.InputAlertManagerRequest) error ForwardToDingTalk(req *request.ForwardToDingTalkRequest, uuid string) error // GetAlertRuleFile get basic alarm rules GetAlertRuleFile(req *request.GetAlertRuleConfigRequest) (*response.GetAlertRuleFileResponse, error) // UpdateAlertRuleFile update basic alarm rules UpdateAlertRuleFile(req *request.UpdateAlertRuleConfigRequest) error // AlertRule Options GetGroupList() response.GetGroupListResponse GetMetricPQL() (*response.GetMetricPQLResponse, error) // AlertRule CRUD GetAlertRules(req *request.GetAlertRuleRequest) response.GetAlertRulesResponse UpdateAlertRule(req *request.UpdateAlertRuleRequest) error DeleteAlertRule(req *request.DeleteAlertRuleRequest) error AddAlertRule(req *request.AddAlertRuleRequest) error CheckAlertRule(req *request.CheckAlertRuleRequest) (response.CheckAlertRuleResponse, error) // AlertManager Receiver CRUD GetAMConfigReceivers(req *request.GetAlertManagerConfigReceverRequest) response.GetAlertManagerConfigReceiverResponse AddAMConfigReceiver(req *request.AddAlertManagerConfigReceiver) error UpdateAMConfigReceiver(req *request.UpdateAlertManagerConfigReceiver) error DeleteAMConfigReceiver(req *request.DeleteAlertManagerConfigReceiverRequest) error }
func New ¶
func New(chRepo clickhouse.Repo, k8sApi kubernetes.Repo, dbRepo database.Repo) Service
Source Files
¶
Click to show internal directories.
Click to hide internal directories.