influx

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertHandler

func InsertHandler(req *http.Request) error

InsertHandler processes remote write for influx line protocol.

See https://github.com/influxdata/influxdb/blob/4cbdc197b8117fee648d62e2e5be75c6575352f0/tsdb/README.md

Types

type Field

type Field struct {
	Key   string
	Value float64
}

Field represents influx field.

type Row

type Row struct {
	Measurement string
	Tags        []Tag
	Fields      []Field
	Timestamp   int64
}

Row is a single influx row.

type Rows

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

Rows contains parsed influx rows.

func (*Rows) Reset

func (rs *Rows) Reset()

Reset resets rs.

func (*Rows) Unmarshal

func (rs *Rows) Unmarshal(s string) error

Unmarshal unmarshals influx line protocol rows from s.

See https://docs.influxdata.com/influxdb/v1.7/write_protocols/line_protocol_tutorial/

s must be unchanged until rs is in use.

type Tag

type Tag struct {
	Key   string
	Value string
}

Tag represents influx tag.

Jump to

Keyboard shortcuts

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