datadog

package
v0.0.0-...-abd2dae Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datadog

type Datadog struct {
	// contains filtered or unexported fields
}

Datadog to hold datadog client state

func New

func New(serviceName, env, source string) *Datadog

New init new datadog client

func (*Datadog) Count

func (datadog *Datadog) Count(name string, value int64, tags []string, rate float64) error

Count tracks how many times something happened per second

func (*Datadog) Gauge

func (datadog *Datadog) Gauge(name string, value float64, tags []string, rate float64) error

Gauge measures the value of a metric at a particular time

func (*Datadog) Histogram

func (datadog *Datadog) Histogram(name string, startTime time.Time, tags []string) error

Histogram tracks the statistical distribution of a set of values on each host

Jump to

Keyboard shortcuts

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