metric_drivers

package
v0.0.0-...-be858ba Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatedPoint

type AggregatedPoint struct {
	Sum, Count, Last, Min, Max float64
}

type DriverInterface

type DriverInterface interface {
	Send(key uint64, name string, Point AggregatedPoint, tags map[string]string, time time.Time) error
}

type InfluxDB

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

func NewInfluxDB

func NewInfluxDB(url, username, password, database, precision, retention string, flushInterval time.Duration, maxSize int) *InfluxDB

func (*InfluxDB) Send

func (ifdb *InfluxDB) Send(key uint64, name string, Point AggregatedPoint, tags map[string]string, t time.Time) error

Jump to

Keyboard shortcuts

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