rainbond: github.com/goodrain/rainbond/monitor/api/controller Index | Files

package controller

import "github.com/goodrain/rainbond/monitor/api/controller"

Index

Package Files

rules.go

type RuleControllerManager Uses

type RuleControllerManager struct {
    Rules   *prometheus.AlertingRulesManager
    Manager *prometheus.Manager
}

RuleControllerManager controller manager

func NewControllerManager Uses

func NewControllerManager(a *prometheus.AlertingRulesManager, p *prometheus.Manager) *RuleControllerManager

NewControllerManager new controller manager

func (*RuleControllerManager) AddRules Uses

func (c *RuleControllerManager) AddRules(w http.ResponseWriter, r *http.Request)

AddRules add rule

func (*RuleControllerManager) DelRules Uses

func (c *RuleControllerManager) DelRules(w http.ResponseWriter, r *http.Request)

DelRules del rules

func (*RuleControllerManager) GetAllRules Uses

func (c *RuleControllerManager) GetAllRules(w http.ResponseWriter, r *http.Request)

GetAllRules get all rules

func (*RuleControllerManager) GetRules Uses

func (c *RuleControllerManager) GetRules(w http.ResponseWriter, r *http.Request)

GetRules get rules

func (*RuleControllerManager) RegRules Uses

func (c *RuleControllerManager) RegRules(w http.ResponseWriter, r *http.Request)

RegRules reg rules

Package controller imports 7 packages (graph) and is imported by 2 packages. Updated 2019-04-04. Refresh now. Tools for package owners.