hostedtsdb

package
v0.0.0-...-0e24ee4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2016 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RemoteUrl *url.URL
	Token     string
)

Functions

func Meta

func Meta() *plugin.PluginMeta

func PostData

func PostData(path, token string, body []byte) error

Types

type HostedtsdbPublisher

type HostedtsdbPublisher struct {
}

func NewHostedtsdbPublisher

func NewHostedtsdbPublisher() *HostedtsdbPublisher

func (*HostedtsdbPublisher) GetConfigPolicy

func (f *HostedtsdbPublisher) GetConfigPolicy() (*cpolicy.ConfigPolicy, error)

func (*HostedtsdbPublisher) Publish

func (f *HostedtsdbPublisher) Publish(contentType string, content []byte, config map[string]ctypes.ConfigValue) error

type WriteQueue

type WriteQueue struct {
	sync.Mutex
	Metrics   []*schema.MetricData
	QueueFull chan struct{}
}

func NewWriteQueue

func NewWriteQueue() *WriteQueue

func (*WriteQueue) Add

func (q *WriteQueue) Add(metrics []*schema.MetricData)

func (*WriteQueue) Flush

func (q *WriteQueue) Flush()

func (*WriteQueue) Run

func (q *WriteQueue) Run()

Jump to

Keyboard shortcuts

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