metrics

package
v0.0.0-...-0bfde0c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: GPL-3.0 Imports: 5 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 CounterDS

type CounterDS struct {
	Metric
	Value int64
}

CounterDS 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