v1

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleAPI

type RuleAPI struct {
	// contains filtered or unexported fields
}

RuleAPI is a very simple API used by Thanos Ruler.

func NewRuleAPI

func NewRuleAPI(
	logger log.Logger,
	reg prometheus.Registerer,
	ruleGroups rules.UnaryClient,
	activeAlerts alertsRetriever,
	disableCORS bool,
	flagsMap map[string]string,
) *RuleAPI

NewRuleAPI creates an Thanos ruler API.

func (*RuleAPI) Register

func (rapi *RuleAPI) Register(r *route.Router, tracer opentracing.Tracer, logger log.Logger, ins extpromhttp.InstrumentationMiddleware, logMiddleware *logging.HTTPServerMiddleware)

Jump to

Keyboard shortcuts

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