services

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 4 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(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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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