stats

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Metric

func Metric(name string, tags ...KV) string

Types

type Client

type Client interface {
	WithTags(tags ...KV) Client
	Increment(metric string)
	IncrementBy(metric string, count int64)
	Gauge(metric string, value float64)
	Histogram(metric string, value float64)
	DurationUntilNow(metric string, start time.Time)
	DurationOf(metric string, start, end time.Time)
	Close()
}

type ClientBuilder

type ClientBuilder interface {
	WithEntity(entity *protocol.Entity) ClientBuilder
	WithURN(urn *protocol.Label) ClientBuilder
	WithEnvironment(environment string) ClientBuilder
	WithPodName(podName string) ClientBuilder
	WithDeployment(deployment string) ClientBuilder
	Build() (Client, error)
}

type KV

type KV struct {
	K string
	V string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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