netdata

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestBuilder

type RequestBuilder struct {
	// Base API URL
	BaseURL string
	Chart   string
	// Number of points
	Points int
	// Start range
	After int
}

func (*RequestBuilder) Build

func (b *RequestBuilder) Build() (*http.Request, error)

type Response

type Response struct {
	API            int           `json:"api"`
	ID             string        `json:"id"`
	Name           string        `json:"name"`
	FirstEntry     int64         `json:"first_entry"`
	LastEntry      int64         `json:"last_entry"`
	DimensionNames []string      `json:"dimension_names"`
	DimensionIDs   []string      `json:"dimensions_ids"`
	LatestValues   []json.Number `json:"latest_values"`
	ViewLatest     []json.Number `json:"view_latest"`
	Dimensions     int           `json:"dimensions"`
	Points         int           `json:"points"`
	Format         string        `json:"format"`
	Result         Result        `json:"result"`
	Min            json.Number   `json:"min"`
	Max            json.Number   `json:"max"`
}

type Result

type Result struct {
	Labels []string        `json:"labels"`
	Data   [][]json.Number `json:"data"`
}

Jump to

Keyboard shortcuts

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