Help us shape the future of Go! Take the 2026 Go Developer Survey

dd

package module
v0.0.0-...-26d637a Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: MIT Imports: 3 Imported by: 0

README

go-dd-lambda

Package for sending datadog metrics from lambda

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// Namespace to prepend to all statsd calls
	Namespace string
	// Tags are global tags to be added to every statsd call
	Tags []string
}

A Client is a handle for sending messages to datadog. It is safe to use one Client from multiple goroutines simultaneously.

func New

func New() (*Client, error)

New DataDog client

func (*Client) Count

func (c *Client) Count(name string, value int64, tags []string) error

Count tracks how many times something happened per second.

func (*Client) Decr

func (c *Client) Decr(name string, tags []string) error

Decr is just Count of -1

func (*Client) Gauge

func (c *Client) Gauge(name string, value float64, tags []string) error

Gauge measures the value of a metric at a particular time.

func (*Client) Histogram

func (c *Client) Histogram(name string, value float64, tags []string) error

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

func (*Client) Incr

func (c *Client) Incr(name string, tags []string) error

Incr is just Count of 1

Jump to

Keyboard shortcuts

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