Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Point ¶
type Point [2]float64
Point represents a point from DataDog POST request to /api/v1/series
type Request ¶
type Request struct {
Series []Series `json:"series"`
}
Request represents DataDog POST request to /api/v1/series
See https://docs.datadoghq.com/api/latest/metrics/#submit-metrics
type Series ¶
type Series struct {
Metric string `json:"metric"`
Host string `json:"host"`
// The device field does not appear in the datadog docs, but datadog-agent does use it.
// Datadog agent (v7 at least), removes the tag "device" and adds it as its own field. Why? That I don't know!
// https://github.com/DataDog/datadog-agent/blob/0ada7a97fed6727838a6f4d9c87123d2aafde735/pkg/metrics/series.go#L84-L105
Device string `json:"device"`
Points []Point `json:"points"`
Tags []string `json:"tags"`
}
Series represents a series item from DataDog POST request to /api/v1/series
See https://docs.datadoghq.com/api/latest/metrics/#submit-metrics
Click to show internal directories.
Click to hide internal directories.