graphite

package
Version: v1.7.1-0...-29a0ac7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package graphite defines structures for interacting with a Graphite server.

Index

Constants

This section is empty.

Variables

View Source
var DefaultClient = &http.Client{
	Timeout: time.Minute,
}

DefaultClient is the default HTTP client for requests.

Functions

func Query

func Query(r *bgraphite.Request, host string, header http.Header) ([]byte, bgraphite.Response, error)

Query performs a request to Graphite at the given host. host specifies a hostname with optional port, and may optionally begin with a scheme (http, https) to specify the protocol (http is the default). header is the headers to send.

Types

type GraphiteContext

type GraphiteContext struct {
	Host   string
	Header http.Header

	Dur             time.Duration
	MissingVals     int
	EmptyResp       int
	IncompleteResp  int
	BadStart        int
	BadStep         int
	BadSteps        int
	AssertMinSeries int
	AssertStart     time.Time
	AssertStep      int
	AssertSteps     int
	Traces          []Trace
	// contains filtered or unexported fields
}

func (*GraphiteContext) Query

type Trace

type Trace struct {
	Request  *bgraphite.Request
	Response []byte
}

func (Trace) String

func (t Trace) String() string

Source Files

Jump to

Keyboard shortcuts

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