services

package

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(ctx context.Context, clusterName string, alertValue string, route *alertconfig.Route) error
	Delete(ctx context.Context, clusterName string, alertValue string) error
	Get(ctx context.Context, clusterName string, alertValue string) (*alertconfig.Route, error)
	List(ctx context.Context, clusterName string) ([]*alertconfig.Route, error)
	Update(ctx context.Context, clusterName string, alertValue string, route *alertconfig.Route) error
}

RouteProcessor defines the interface of operation route service of alertmanager

type RuleProcessor

type RuleProcessor interface {
	CreateGroup(ctx context.Context, clusterName, groupName string, ruleGroup *v1.RuleGroup) error
	DeleteGroup(ctx context.Context, clusterName, groupName string) error
	GetGroup(ctx context.Context, clusterName, groupName string) (*v1.RuleGroup, error)
	UpdateGroup(ctx context.Context, clusterName, groupName string, ruleGroup *v1.RuleGroup) error
	ListGroups(ctx context.Context, clusterName string) ([]*v1.RuleGroup, error)
	CreateRule(ctx context.Context, clusterName, groupName string, recordName string, rule *v1.Rule) error
	DeleteRule(ctx context.Context, clusterName, groupName string, recordName string) error
	GetRule(ctx context.Context, clusterName, groupName string, recordName string) (*v1.Rule, error)
	UpdateRule(ctx context.Context, clusterName, groupName string, recordName string, rule *v1.Rule) error
	ListRules(ctx context.Context, clusterName string, groupName string) ([]*v1.Rule, error)
}

RuleProcessor defines the interface of operation rules service of prometheus

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL