Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendConfigProcessor ¶
type BackendConfigProcessor interface { RegisterWebService(ws *restful.WebService) ConfigProcessor }
BackendConfigProcessor defines the interface of operation rules service of prometheus and alertmanager
type ConfigProcessor ¶
type ConfigProcessor interface { Create(req *restful.Request, resp *restful.Response) Update(req *restful.Request, resp *restful.Response) Delete(req *restful.Request, resp *restful.Response) Get(req *restful.Request, resp *restful.Response) List(req *restful.Request, resp *restful.Response) }
ConfigProcessor defines the interface of operation rules service
type RouteProcessor ¶
type RouteProcessor interface { Create(clusterName string, alertValue string, route *alertconfig.Route) error Delete(clusterName string, alertValue string) error Get(clusterName string, alertValue string) (*alertconfig.Route, error) List(clusterName string) ([]*alertconfig.Route, error) Update(clusterName string, alertValue string, route *alertconfig.Route) error }
RouteProcessor defines the interface of operation route service of alertmanager
type RuleProcessor ¶
type RuleProcessor interface { CreateGroup(clusterName, groupName string, ruleGroup *v1.RuleGroup) error DeleteGroup(clusterName, groupName string) error GetGroup(clusterName, groupName string) (*v1.RuleGroup, error) UpdateGroup(clusterName, groupName string, ruleGroup *v1.RuleGroup) error ListGroups(clusterName string) ([]*v1.RuleGroup, error) CreateRule(clusterName, groupName string, recordName string, rule *v1.Rule) error DeleteRule(clusterName, groupName string, recordName string) error GetRule(clusterName, groupName string, recordName string) (*v1.Rule, error) UpdateRule(clusterName, groupName string, recordName string, rule *v1.Rule) error ListRules(clusterName string, groupName string) ([]*v1.Rule, error) }
RuleProcessor defines the interface of operation rules service of prometheus
Click to show internal directories.
Click to hide internal directories.