opentsdbhttp

package
v1.32.5-cluster Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Row

type Row struct {
	Metric    string
	Tags      []Tag
	Value     float64
	Timestamp int64
}

Row is a single OpenTSDB row.

type Rows

type Rows struct {
	Rows []Row
	// contains filtered or unexported fields
}

Rows contains parsed OpenTSDB rows.

func (*Rows) Reset

func (rs *Rows) Reset()

Reset resets rs.

func (*Rows) Unmarshal

func (rs *Rows) Unmarshal(av *fastjson.Value)

Unmarshal unmarshals OpenTSDB rows from av.

See http://opentsdb.net/docs/build/html/api_http/put.html

s must be unchanged until rs is in use.

type Server added in v1.31.1

type Server struct {
	// contains filtered or unexported fields
}

Server represents HTTP OpenTSDB server.

func MustServe added in v1.31.1

func MustServe(ln net.Listener) *Server

MustServe serves OpenTSDB HTTP put requests from ln.

MustStop must be called on the returned server when it is no longer needed.

func MustStart added in v1.31.1

func MustStart(addr string) *Server

MustStart starts HTTP OpenTSDB server on the given addr.

MustStop must be called on the returned server when it is no longer needed.

func (*Server) MustStop added in v1.31.1

func (s *Server) MustStop()

MustStop stops HTTP OpenTSDB server.

func (*Server) Wait added in v1.31.1

func (s *Server) Wait()

Wait waits until the server is stopped with MustStop.

type Tag

type Tag struct {
	Key   string
	Value string
}

Tag is an OpenTSDB tag.

Jump to

Keyboard shortcuts

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