influxdbclient

package
v0.0.0-...-a8d8f1c Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UUIDToString

func UUIDToString(uuid *events.UUID) string

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, appinfo map[string]cfinstanceinfoapi.AppInfo) *Client

func (*Client) AddContainerMetric

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

func (*Client) AddCounterValueMetric

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

func (*Client) AddHttpStartStopMetric

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

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