reporter

package
Version: v0.0.0-...-f29742d Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockReporter

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

Mock of Reporter interface

func NewMockReporter

func NewMockReporter(ctrl *gomock.Controller) *MockReporter

func (*MockReporter) Close

func (_m *MockReporter) Close() error

func (*MockReporter) EXPECT

func (_m *MockReporter) EXPECT() *_MockReporterRecorder

func (*MockReporter) Flush

func (_m *MockReporter) Flush() error

func (*MockReporter) ReportBatchTimer

func (_m *MockReporter) ReportBatchTimer(_param0 id.ID, _param1 []float64) error

func (*MockReporter) ReportCounter

func (_m *MockReporter) ReportCounter(_param0 id.ID, _param1 int64) error

func (*MockReporter) ReportGauge

func (_m *MockReporter) ReportGauge(_param0 id.ID, _param1 float64) error

type Reporter

type Reporter interface {
	// ReportCounter reports a counter metric.
	ReportCounter(id id.ID, value int64) error

	// ReportBatchTimer reports a batched timer metric.
	ReportBatchTimer(id id.ID, value []float64) error

	// ReportGauge reports a gauge metric.
	ReportGauge(id id.ID, value float64) error

	// Flush flushes any buffered metrics.
	Flush() error

	// Close closes the reporter.
	Close() error
}

Reporter reports aggregated metrics.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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