metricsreporter

package
v74.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2017 License: Apache-2.0, BSD-3-Clause, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

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

func NewCounter

func NewCounter(name string) *Counter

func (*Counter) GetName

func (c *Counter) GetName() string

func (*Counter) GetTotal

func (c *Counter) GetTotal() uint64

func (*Counter) GetValue

func (c *Counter) GetValue() uint64

func (*Counter) IncrementValue

func (c *Counter) IncrementValue()

func (*Counter) Reset

func (c *Counter) Reset()

type MetricsReporter

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

func New

func New(reportTime time.Duration, writer io.Writer, counters ...*Counter) *MetricsReporter

func (*MetricsReporter) Duration

func (r *MetricsReporter) Duration() time.Duration

func (*MetricsReporter) NumTicks

func (r *MetricsReporter) NumTicks() int32

func (*MetricsReporter) Rate

func (r *MetricsReporter) Rate() float64

func (*MetricsReporter) ReceivedCounter

func (r *MetricsReporter) ReceivedCounter() *Counter

func (*MetricsReporter) SentCounter

func (r *MetricsReporter) SentCounter() *Counter

func (*MetricsReporter) Start

func (r *MetricsReporter) Start()

func (*MetricsReporter) Stop

func (r *MetricsReporter) Stop()

Jump to

Keyboard shortcuts

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