services

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 3 Imported by: 4

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL