mock

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FakeCounter added in v0.6.0

func FakeCounter(value int) prometheus.Metric

func FakeHistogram added in v0.6.0

func FakeHistogram(avg, p99 int) prometheus.Histogram

func FakeLabeledCounter added in v0.6.1

func FakeLabeledCounter(labelKey, labelValue string, value int) *model.SampleStream

Types

type PromClientMock

type PromClientMock struct {
	mock.Mock
}

func (*PromClientMock) FetchHistogramRange

func (o *PromClientMock) FetchHistogramRange(metricName, labels, grouping string, q *prometheus.MetricsQuery) prometheus.Histogram

func (*PromClientMock) FetchRange

func (o *PromClientMock) FetchRange(metricName, labels, grouping, aggregator string, q *prometheus.MetricsQuery) prometheus.Metric

func (*PromClientMock) FetchRateRange

func (o *PromClientMock) FetchRateRange(metricName, labels, grouping string, q *prometheus.MetricsQuery) prometheus.Metric

func (*PromClientMock) GetMetricsForLabels

func (o *PromClientMock) GetMetricsForLabels(labels []string) ([]string, error)

Jump to

Keyboard shortcuts

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