Documentation ¶
Index ¶
- type ControllerManager
- func (c *ControllerManager) AddRules(w http.ResponseWriter, r *http.Request)
- func (c *ControllerManager) DelRules(w http.ResponseWriter, r *http.Request)
- func (c *ControllerManager) GetAllRules(w http.ResponseWriter, r *http.Request)
- func (c *ControllerManager) GetRules(w http.ResponseWriter, r *http.Request)
- func (c *ControllerManager) RegRules(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerManager ¶
type ControllerManager struct { Rules *prometheus.AlertingRulesManager Manager *prometheus.Manager }
func NewControllerManager ¶
func NewControllerManager(a *prometheus.AlertingRulesManager, p *prometheus.Manager) *ControllerManager
func (*ControllerManager) AddRules ¶
func (c *ControllerManager) AddRules(w http.ResponseWriter, r *http.Request)
func (*ControllerManager) DelRules ¶
func (c *ControllerManager) DelRules(w http.ResponseWriter, r *http.Request)
func (*ControllerManager) GetAllRules ¶
func (c *ControllerManager) GetAllRules(w http.ResponseWriter, r *http.Request)
func (*ControllerManager) GetRules ¶
func (c *ControllerManager) GetRules(w http.ResponseWriter, r *http.Request)
func (*ControllerManager) RegRules ¶
func (c *ControllerManager) RegRules(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.