metrics

package
v1.15.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	Value float64
	Name  string
}

type Metrics

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

func New

func New(t *testing.T, ctx context.Context, url string) *Metrics

func (*Metrics) All

func (m *Metrics) All() map[string]float64

func (*Metrics) MatchMetric

func (m *Metrics) MatchMetric(substrings ...string) []Metric

MatchMetric returns all metrics that contain all the substrings in the key This is useful because of the way we serialize labels in the metrics name

func (*Metrics) MatchMetricAndSum

func (m *Metrics) MatchMetricAndSum(sum float64, substrings ...string) bool

MatchMetricAndSum returns true if the set of metrics has a specific sum

Jump to

Keyboard shortcuts

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