datadogv2

package
v0.18.0-victorialogs Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalJSON

func UnmarshalJSON(req *Request, b []byte) error

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

func UnmarshalProtobuf(req *Request, b []byte) error

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

type Resource struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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