influxdb

package
v0.0.0-...-bfdd474 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client allows sending batches of Prometheus samples to InfluxDB.

func NewClient

func NewClient(url string, timeout time.Duration, database, retentionPolicy string) *Client

NewClient creates a new Client.

func (Client) Name

func (c Client) Name() string

Name identifies the client as an InfluxDB client.

func (*Client) Store

func (c *Client) Store(samples model.Samples) error

Store sends a batch of samples to InfluxDB via its HTTP API.

type StoreSamplesRequest

type StoreSamplesRequest struct {
	Database        string  `json:"database"`
	RetentionPolicy string  `json:"retentionPolicy"`
	Points          []point `json:"points"`
}

StoreSamplesRequest is used for building a JSON request for storing samples in InfluxDB.

Jump to

Keyboard shortcuts

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