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.
Click to show internal directories.
Click to hide internal directories.