Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalJSON ¶
UnmarshalJSON unmarshals JSON DataDog /api/v2/series request body from b to req.
See https://docs.datadoghq.com/api/latest/metrics/#submit-metrics
b shouldn't be modified when req is in use.
func UnmarshalProtobuf ¶
UnmarshalProtobuf unmarshals protobuf DataDog /api/v2/series request body from b to req.
See https://docs.datadoghq.com/api/latest/metrics/#submit-metrics
b shouldn't be modified when req is in use.
Types ¶
type Point ¶
type Point struct { // Timestamp is point timestamp in seconds Timestamp int64 `json:"timestamp"` // Value is point value Value float64 `json:"value"` }
Point represents a point from DataDog POST request to /api/v2/series
See https://docs.datadoghq.com/api/latest/metrics/#submit-metrics
type Request ¶
type Request struct {
Series []Series `json:"series"`
}
Request represents DataDog POST request to /api/v2/series
See https://docs.datadoghq.com/api/latest/metrics/#submit-metrics
type Resource ¶
Resource is series resource from DataDog POST request to /api/v2/series
See https://docs.datadoghq.com/api/latest/metrics/#submit-metrics
type Series ¶
type Series struct { // Metric is the name of the metric Metric string `json:"metric"` // Points points for the given metric Points []Point `json:"points"` Resources []Resource `json:"resources"` SourceTypeName string `json:"source_type_name"` Tags []string }
Series represents a series item from DataDog POST request to /api/v2/series
See https://docs.datadoghq.com/api/latest/metrics/#submit-metrics