metrics

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricsServiceKey = ""
	DDKey             = ""
)

Functions

func MeterCommand

func MeterCommand(cmd *cobra.Command, connectStdin bool) io.WriteCloser

func PutMetrics

func PutMetrics(cmd string, tags []string)

Types

type DDMetric

type DDMetric struct {
	Metric string    `json:"metric"`
	Type   string    `json:"type,omitempty"`
	Host   string    `json:"host,omitempty"`
	Tags   []string  `json:"tags,omitempty"`
	Points [][]int64 `json:"points"`
}

type DDSeries

type DDSeries struct {
	Series []DDMetric `json:"series,omitempty"`
}

type DDSeriesResponse

type DDSeriesResponse struct {
	Status string
}

type Metric

type Metric struct {
	Metric    string            `json:"metric"`
	Kind      string            `json:"kind,omitempty"`
	Unit      string            `json:"unit,omitempty"`
	Tags      map[string]string `json:"tags,omitempty"`
	Value     int64             `json:"value"`
	Timestamp int64             `json:"timestamp,omitempty"`
}

type Series

type Series []Metric

type SeriesResponse

type SeriesResponse struct {
	Status string
}

Jump to

Keyboard shortcuts

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