Documentation ¶
Index ¶
- type RuleControllerManager
- func (c *RuleControllerManager) AddRules(w http.ResponseWriter, r *http.Request)
- func (c *RuleControllerManager) DelRules(w http.ResponseWriter, r *http.Request)
- func (c *RuleControllerManager) GetAllRules(w http.ResponseWriter, r *http.Request)
- func (c *RuleControllerManager) GetRules(w http.ResponseWriter, r *http.Request)
- func (c *RuleControllerManager) RegRules(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuleControllerManager ¶
type RuleControllerManager struct { Rules *prometheus.AlertingRulesManager Manager *prometheus.Manager }
RuleControllerManager controller manager
func NewControllerManager ¶
func NewControllerManager(a *prometheus.AlertingRulesManager, p *prometheus.Manager) *RuleControllerManager
NewControllerManager new controller manager
func (*RuleControllerManager) AddRules ¶
func (c *RuleControllerManager) AddRules(w http.ResponseWriter, r *http.Request)
AddRules add rule
func (*RuleControllerManager) DelRules ¶
func (c *RuleControllerManager) DelRules(w http.ResponseWriter, r *http.Request)
DelRules del rules
func (*RuleControllerManager) GetAllRules ¶
func (c *RuleControllerManager) GetAllRules(w http.ResponseWriter, r *http.Request)
GetAllRules get all rules
func (*RuleControllerManager) GetRules ¶
func (c *RuleControllerManager) GetRules(w http.ResponseWriter, r *http.Request)
GetRules get rules
func (*RuleControllerManager) RegRules ¶
func (c *RuleControllerManager) RegRules(w http.ResponseWriter, r *http.Request)
RegRules reg rules
Click to show internal directories.
Click to hide internal directories.