testhelper

package
v0.0.0-...-db3f45c Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpyMetric

type SpyMetric struct {
	Opts *prometheus.Opts
	// contains filtered or unexported fields
}

func (*SpyMetric) Add

func (s *SpyMetric) Add(c float64)

func (*SpyMetric) Set

func (s *SpyMetric) Set(c float64)

func (*SpyMetric) Value

func (s *SpyMetric) Value() float64

type SpyMetricClient

type SpyMetricClient struct {
	Metrics map[string]*SpyMetric
	// contains filtered or unexported fields
}

func NewMetricClient

func NewMetricClient() *SpyMetricClient

func (*SpyMetricClient) GetMetric

func (s *SpyMetricClient) GetMetric(name string, tags map[string]string) *SpyMetric

func (*SpyMetricClient) HasMetric

func (s *SpyMetricClient) HasMetric(name string, tags map[string]string) bool

func (*SpyMetricClient) NewCounter

func (s *SpyMetricClient) NewCounter(name, helpText string, opts ...metrics.MetricOption) metrics.Counter

func (*SpyMetricClient) NewGauge

func (s *SpyMetricClient) NewGauge(name, helpText string, opts ...metrics.MetricOption) metrics.Gauge

Jump to

Keyboard shortcuts

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