sketches

package
v0.116.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package sketches is a copy of part from github.com/DataDog/datadog-agent/pkg/metrics. TODO(mx-psi): import pkg/metrics from datadog-agent directly

Index

Constants

View Source
const (
	SketchSeriesEndpoint string = "/api/beta/sketches"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SketchPoint

type SketchPoint struct {
	Sketch *quantile.Sketch `json:"sketch"`
	Ts     int64            `json:"ts"`
}

A SketchPoint represents a quantile sketch at a specific time

type SketchSeries

type SketchSeries struct {
	Name     string        `json:"metric"`
	Tags     []string      `json:"tags"`
	Host     string        `json:"host"`
	Interval int64         `json:"interval"`
	Points   []SketchPoint `json:"points"`
}

A SketchSeries is a timeseries of quantile sketches.

type SketchSeriesList

type SketchSeriesList []SketchSeries

A SketchSeriesList implements marshaler.Marshaler

func (SketchSeriesList) Marshal

func (sl SketchSeriesList) Marshal() ([]byte, error)

Marshal encodes this series list.

Jump to

Keyboard shortcuts

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