datadog

package
v0.0.0-...-6823ea4 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: Apache-2.0 Imports: 4 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 {
	APIKey        string
	ApplicationID string
}

Datadog Struct that holds APIKey and ApplicationID

func (*Datadog) GetClient

func (datadog *Datadog) GetClient() *datadogClient.Client

GetClient a DataDog Client that make available to users to send metrics or interact with Datadog API

func (*Datadog) PostMetrics

func (datadog *Datadog) PostMetrics(metricName string, point float64, hostname string, metricType string, tags []string) (bool, error)

PostMetrics posts a point to the Datadog API Returns true or false depending on the point being successfuly posted or not

type Dogstatsd

type Dogstatsd struct {
	Host string
	Port int
}

Dogstatsd Struct that holds Host and Port

func (*Dogstatsd) SendCounter

func (dogstatsd *Dogstatsd) SendCounter(namespace string, name string, tags []string) bool

SendCounter sends a Counter Increment Metric to Dogstatsd

func (*Dogstatsd) SendGauge

func (dogstatsd *Dogstatsd) SendGauge(namespace string, name string, tags []string, value float64) bool

SendGauge sends a Gauge Metric to Dogstatsd

func (*Dogstatsd) SendTiming

func (dogstatsd *Dogstatsd) SendTiming(namespace string, name string, tags []string, duration time.Duration) bool

SendTiming sends a Timing Metric to Dogstatsd

Jump to

Keyboard shortcuts

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