iface

package
v0.1.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PoliciesRoot - path in config and status registry for policies results.
	PoliciesRoot = "policies"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricSubRegistry

type MetricSubRegistry interface {
	RegisterHistogramSub(metricNameOrig, metricNameSub string, labelMatchers []*labels.Matcher)
	RegisterMetricSub(metricsNameOrig, metricNameSub string, labelMatchers []*labels.Matcher)
}

MetricSubRegistry is for registering metric substitution patterns (used by FluxMeter).

type Policy

type Policy interface {
	PolicyRead
	MetricSubRegistry
}

Policy is the global interface composed of all of the above APIs.

type PolicyBase

type PolicyBase interface {
	GetPolicyName() string
	GetPolicyHash() string
}

PolicyBase is for read only access to base policy info.

type PolicyRead

type PolicyRead interface {
	PolicyBase
	ResolveMetricNames(query string) (string, error)
	GetEvaluationInterval() time.Duration
}

PolicyRead is for read only access to full policy state.

Jump to

Keyboard shortcuts

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