fakes

package
v0.0.0-...-ce39f13 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeMetricSubmitter

func NewFakeMetricSubmitter() instrumentation.MetricSubmitter

Types

type FakeMetricSubmitter

type FakeMetricSubmitter struct {
	MetricValuePairs []MetricValuePair
}

FakeMetricSubmitter is fake metric submitter. it is used for tests.

func (*FakeMetricSubmitter) SendMetric

func (metricSubmitter *FakeMetricSubmitter) SendMetric(value int, metric instrumentation.Metric)

func (*FakeMetricSubmitter) SendMetricToNamespace

func (metricSubmitter *FakeMetricSubmitter) SendMetricToNamespace(value int, metric instrumentation.Metric, accountName, namespaceName string)

type MetricValuePair

type MetricValuePair struct {
	Metric instrumentation.Metric
	Value  int
}

MetricValuePair is a pair of metric and value.

Jump to

Keyboard shortcuts

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