influxdbclient

package
v0.0.0-...-7a2bb2c Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2016 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
}

func New

func New(url string, database string, user string, password string, allowSelfSigned bool, prefix string, deployment string, ip string, log *gosteno.Logger) *Client

func (*Client) AddMetric

func (c *Client) AddMetric(envelope *events.Envelope)

func (*Client) AlertSlowConsumerError

func (c *Client) AlertSlowConsumerError()

func (*Client) PostMetrics

func (c *Client) PostMetrics() error

type Metric

type Metric struct {
	Metric string   `json:"metric"`
	Points []Point  `json:"points"`
	Type   string   `json:"type"`
	Host   string   `json:"host,omitempty"`
	Tags   []string `json:"tags,omitempty"`
}

type Point

type Point struct {
	Timestamp int64
	Value     float64
}

Jump to

Keyboard shortcuts

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