metrics

package
v0.0.0-...-5f48557 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(ctx context.Context, topic, label string, value int)

Count collects a numeric counter value

Types

type Counter

type Counter struct {
	Metric
	Value int64
}

Counter is a metric to collect integer values

type Metric

type Metric struct {
	Topic   string // describes the metric
	Label   string // additional context, e.g. an id, name/value pairs, comma separated labels etc
	Type    string // the type, e.g. count,
	Created int64
}

Metric is a generic data structure to store metrics

Jump to

Keyboard shortcuts

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