metrics

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: AGPL-3.0 Imports: 6 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 {
	// contains filtered or unexported fields
}

func (Metric) Add

func (m Metric) Add(ctx context.Context, v goja.Value, addTags ...map[string]string)

type Metrics

type Metrics struct{}

func New added in v0.18.0

func New() *Metrics

func (*Metrics) XCounter

func (*Metrics) XCounter(ctx *context.Context, name string, isTime ...bool) (interface{}, error)

func (*Metrics) XGauge

func (*Metrics) XGauge(ctx *context.Context, name string, isTime ...bool) (interface{}, error)

func (*Metrics) XRate

func (*Metrics) XRate(ctx *context.Context, name string, isTime ...bool) (interface{}, error)

func (*Metrics) XTrend

func (*Metrics) XTrend(ctx *context.Context, name string, isTime ...bool) (interface{}, error)

Jump to

Keyboard shortcuts

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