client

package
v5.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: Apache-2.0, Apache-2.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 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)
}

func NewHttpClient

func NewHttpClient(serverAddress string) Client

Jump to

Keyboard shortcuts

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