fluxmeter

package
v0.5.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FxNameTag is Flux Meter Watcher's Fx Tag.
	FxNameTag = "name:\"flux_meter\""
)

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Module returns the fx options for dataplane side pieces of flux meter.

Types

type FluxMeter

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

FluxMeter describes single fluxmeter.

func (*FluxMeter) GetAttributeKey added in v0.1.3

func (fluxMeter *FluxMeter) GetAttributeKey() string

GetAttributeKey returns the attribute key.

func (*FluxMeter) GetFluxMeterID

func (fluxMeter *FluxMeter) GetFluxMeterID() iface.FluxMeterID

GetFluxMeterID returns the flux meter ID.

func (*FluxMeter) GetFluxMeterName

func (fluxMeter *FluxMeter) GetFluxMeterName() string

GetFluxMeterName returns the metric name.

func (*FluxMeter) GetHistogram

func (fluxMeter *FluxMeter) GetHistogram(decisionType flowcontrolv1.CheckResponse_DecisionType,
	statusCode string,
	featureStatus string,
) prometheus.Observer

GetHistogram returns the histogram.

func (*FluxMeter) GetSelector

func (fluxMeter *FluxMeter) GetSelector() *selectorv1.Selector

GetSelector returns the selector.

Jump to

Keyboard shortcuts

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