client

package
v0.0.0-...-fea1ff7 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2017 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetHttpClient

func NetHttpClient(cli *http.Client) optSetter

Types

type CacheElem

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

type Client

type Client interface {
	// Returns a list of all metrics names.
	GetMetricNames() (*response.GetResponse, error)

	// Returns a list of all tag names.
	GetTagNames() (*response.GetResponse, error)

	// Returns a list of all tag values.
	GetTagValues() (*response.GetResponse, error)

	// Queries KairosDB using the query built using builder.
	Query(qb builder.QueryBuilder) (*response.QueryResponse, error)

	// Sends metrics from the builder to the KairosDB server.
	PushMetrics(mb builder.MetricBuilder) (*response.Response, error)

	// Deletes a metric. This is the metric and all its datapoints.
	DeleteMetric(name string) (*response.Response, error)

	// Deletes data in KairosDB using the query built by the builder.
	Delete(builder builder.QueryBuilder) (*response.Response, error)

	// Checks the health of the KairosDB Server.
	HealthCheck() (*response.Response, error)

	GetMetricNamesNeq(metricName string) ([]string, error)

	GetMetricNamesReg(metricNameReg string, neq bool) ([]string, error)

	GetTagNamesReg(tagNameReg string, neq bool) ([]string, error)

	GetTagValuesReg(tagValueReg string, neq bool) ([]string, error)

	GetTagValuesNeq(tagValue string) ([]string, error)
}

func NewHttpClient

func NewHttpClient(serverAddress string, setters ...optSetter) Client

Jump to

Keyboard shortcuts

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