datadog

package
v97.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CounterMetricType string = "count"
View Source
const GaugeMetricType string = "gauge"

Variables

View Source
var APIURL = "https://app.datadoghq.com"

Functions

This section is empty.

Types

type Client

type Client interface {
	PublishSeries(logger lager.Logger, series Series)
	BuildMetric(metricType string, metricName string, count float32, tags ...string) Metric
}

func NewClient

func NewClient(apiKey string, httpClient net.Client, clock clock.Clock) Client

type Metric

type Metric struct {
	Name   string   `json:"metric"`
	Points []Point  `json:"points"`
	Type   string   `json:"type"`
	Host   string   `json:"host"`
	Tags   []string `json:"tags"`
}

type Point

type Point struct {
	Timestamp time.Time
	Value     float32
}

func (Point) MarshalJSON

func (p Point) MarshalJSON() ([]byte, error)

func (*Point) UnmarshalJSON

func (p *Point) UnmarshalJSON(data []byte) error

type Series

type Series []Metric

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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