Documentation ¶ Index ¶ type Client func NewClient(client *http.Client, baseURL string, dryRun bool) *Client func (c *Client) WriteMetric(metric string, tags []KeyValue, fields []KeyValue, timestamp time.Time) error type KeyValue func MakeKV(k string, v interface{}) KeyValue func (kv KeyValue) ToString() (string, error) 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) Source Files ¶ View all Source files telegraf.go Click to show internal directories. Click to hide internal directories.