metrics

package
v1.0.1-0...-ed7063c Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: LGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetricChain

func NewMetricChain(blockchain container.Blockchain) container.Blockchain

Types

type Counter

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

func (*Counter) Name

func (c *Counter) Name() string

type DefaultRegistry

type DefaultRegistry struct {
	metrics.Registry
}

func NewRegistry

func NewRegistry() *DefaultRegistry

func (*DefaultRegistry) Export

func (r *DefaultRegistry) Export()

func (*DefaultRegistry) NewCounter

func (r *DefaultRegistry) NewCounter(name string) *Counter

func (*DefaultRegistry) NewHistogram

func (r *DefaultRegistry) NewHistogram(name string) *Histogram

func (*DefaultRegistry) NewMeter

func (r *DefaultRegistry) NewMeter(name string) *Meter

func (*DefaultRegistry) NewTimer

func (r *DefaultRegistry) NewTimer(name string) *Timer

type Exporter

type Exporter interface {
	Export()
	SentTxCount() int64
	ExcutedTxCount() int64
	SnapshotTxReqMeter(name string) SnapshotStopper
	SnapshotTxRespMeter(name string) SnapshotStopper
}

type Histogram

type Histogram struct {
	metrics.Histogram
	// contains filtered or unexported fields
}

func (*Histogram) Name

func (h *Histogram) Name() string

type Meter

type Meter struct {
	metrics.Meter
	// contains filtered or unexported fields
}

func (*Meter) Name

func (m *Meter) Name() string

type SnapshotStopper

type SnapshotStopper func()

type Timer

type Timer struct {
	metrics.Timer
	// contains filtered or unexported fields
}

func (*Timer) Name

func (t *Timer) Name() string

Jump to

Keyboard shortcuts

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