datadog

package
v0.0.0-...-ee209c9 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Monitor *statsd.Client
}

Client -> Stuct for client connection

func Connect

func Connect(namespace, host, port string) *Client

Connect -> Connect to datadog agent

func (*Client) Event

func (cl *Client) Event(category, priority, title, text, source string, tags []string) bool

Event -> Sends out a complete datadog event to statsd

func (*Client) Gauge

func (cl *Client) Gauge(name string, value float64, tags []string, rate float64) bool

Gauge -> Sends out metrics to datadog

func (*Client) SimpleEvent

func (cl *Client) SimpleEvent(title, text string) bool

SimpleEvent -> Sends out simple datadog event to statsd

type Datadog

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

Datadog -> Struct for the datadog API

func Init

func Init(apiKey, appKey string) (dd Datadog)

Init -> This is the constructor function.

func (*Datadog) PostEvent

func (dd *Datadog) PostEvent(title, text string, tags []string, alertType string) bool

PostEvent -> Post event to datadog using API endpoint.

func (*Datadog) SendMetric

func (dd *Datadog) SendMetric(metric string, points float64, ty string, tags []string) bool

SendMetric -> Send out a metric to datadog

Jump to

Keyboard shortcuts

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