metrics

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	Name  string
	Value interface{}
	Index bool
}

Metric represent a single request metric

type Metrics

type Metrics []Metric

Metrics represents a list of Metrics associated with a request

func (*Metrics) Add

func (m *Metrics) Add(metrics ...Metric)

Add appends a metric to the list of metrics

func (*Metrics) Get added in v1.1.4

func (m *Metrics) Get(name string) *Metric

Get retrives a specific metric by name

Jump to

Keyboard shortcuts

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