api

package
v0.0.0-...-cd47023 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API XXX

func NewAPI

func NewAPI(ciURL string, licenseKey string, timeout time.Duration, proxy ...string) *API

NewAPI XXX

func (*API) GetURL

func (api *API) GetURL(msgType string) string

GetURL gets URL according to msgType(metrics, service_checks or series).

func (*API) Post

func (api *API) Post(path string, body io.Reader) error

Post sends the metrics to Efc.

func (*API) SubmitMetrics

func (api *API) SubmitMetrics(data interface{}) error

SubmitMetrics submits metrics the collector collected.

Jump to

Keyboard shortcuts

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