telegraf

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: GPL-3.0 Imports: 6 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 NewClient

func NewClient(client *http.Client, baseURL string, dryRun bool) *Client

NewClient creates a new Telegraf client from an HTTP client connection.

func (*Client) WriteMetric

func (c *Client) WriteMetric(metric string, tags []KeyValue, fields []KeyValue,
	timestamp time.Time) error

type KeyValue

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

func MakeKV

func MakeKV(k string, v interface{}) KeyValue

func (KeyValue) ToString

func (kv KeyValue) ToString() (string, error)

Jump to

Keyboard shortcuts

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