fluxmeter

package
v2.18.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 16 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

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(labels map[string]string) prometheus.Observer

GetHistogram returns the histogram.

func (*FluxMeter) GetInvalidFluxMeterTotal

func (fluxMeter *FluxMeter) GetInvalidFluxMeterTotal(labels map[string]string) (prometheus.Counter, error)

GetInvalidFluxMeterTotal returns the gauge for invalid flux meters.

func (*FluxMeter) GetPolicyName added in v2.6.0

func (fluxMeter *FluxMeter) GetPolicyName() string

GetPolicyName returns the policy name.

func (*FluxMeter) GetSelectors

func (fluxMeter *FluxMeter) GetSelectors() []*policylangv1.Selector

GetSelectors returns the selectors.

Jump to

Keyboard shortcuts

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