metric

package
v0.0.0-...-c6d3e3d Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MaxInt = int(^uint(0) >> 1)
View Source
const (
	MaxKeyLength = 65535
)

Variables

View Source
var (
	ErrInvalidNumber = errors.New("invalid number")
)

Functions

func New

func New(
	name string,
	tags map[string]string,
	fields map[string]interface{},
	t time.Time,
	mType ...telegraf.ValueType,
) (telegraf.Metric, error)

func NewReader

func NewReader(metrics []telegraf.Metric) io.Reader

func Parse

func Parse(buf []byte) ([]telegraf.Metric, error)

func ParseWithDefaultTime

func ParseWithDefaultTime(buf []byte, t time.Time) ([]telegraf.Metric, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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