datadog

package
v0.0.0-...-cc8cc2f Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Distribution

func Distribution(metricName string, value float64, tags []string)

Distribution ...

func Gauge

func Gauge(metricName string, value float64, tags []string)

Gauge incrementes a counter based on the input

func IncrementCount

func IncrementCount(metricName string, value int64, tags []string)

IncrementCount incrementes a counter based on the input

func TimeTrackAndGauge

func TimeTrackAndGauge(metric string, tags []string, start time.Time)

TimeTrackAndHistogram logs the ammount of time it take for a function to execute and send it as a Gauge to datadog.

Types

type DataDog

type DataDog struct {
	Series []Series `json:"series"`
}

type Series

type Series struct {
	Metric   string    `json:"metric"`
	Points   [][]int64 `json:"points"`
	Tags     []string  `json:"tags"`
	Type     string    `json:"type"`
	Host     string    `json:"host"`
	Interval int64     `json:"interval"`
}

Jump to

Keyboard shortcuts

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