Documentation ¶
Index ¶
- Constants
- func Module() fx.Option
- type FluxMeter
- func (fluxMeter *FluxMeter) GetAttributeKey() string
- func (fluxMeter *FluxMeter) GetFluxMeterID() iface.FluxMeterID
- func (fluxMeter *FluxMeter) GetFluxMeterName() string
- func (fluxMeter *FluxMeter) GetHistogram(labels map[string]string) prometheus.Observer
- func (fluxMeter *FluxMeter) GetInvalidFluxMeterTotal(labels map[string]string) (prometheus.Counter, error)
- func (fluxMeter *FluxMeter) GetPolicyName() string
- func (fluxMeter *FluxMeter) GetSelectors() []*policylangv1.Selector
Constants ¶
View Source
const (
// FxNameTag is Flux Meter Watcher's Fx Tag.
FxNameTag = "name:\"flux_meter\""
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FluxMeter ¶
type FluxMeter struct {
// contains filtered or unexported fields
}
FluxMeter describes single fluxmeter.
func (*FluxMeter) GetAttributeKey ¶
GetAttributeKey returns the attribute key.
func (*FluxMeter) GetFluxMeterID ¶
func (fluxMeter *FluxMeter) GetFluxMeterID() iface.FluxMeterID
GetFluxMeterID returns the flux meter ID.
func (*FluxMeter) GetFluxMeterName ¶
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
GetPolicyName returns the policy name.
func (*FluxMeter) GetSelectors ¶
func (fluxMeter *FluxMeter) GetSelectors() []*policylangv1.Selector
GetSelectors returns the selectors.
Click to show internal directories.
Click to hide internal directories.