legacy

package
v0.0.0-...-5b7411e Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2015 License: Apache-2.0 Imports: 16 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 {
	Now         func() model.Time
	Storage     local.Storage
	QueryEngine *promql.Engine
}

API manages the /api HTTP endpoint.

func (*API) Metrics

func (api *API) Metrics(w http.ResponseWriter, r *http.Request)

Metrics handles the /api/metrics endpoint.

func (*API) Query

func (api *API) Query(w http.ResponseWriter, r *http.Request)

Query handles the /api/query endpoint.

func (*API) QueryRange

func (api *API) QueryRange(w http.ResponseWriter, r *http.Request)

QueryRange handles the /api/query_range endpoint.

func (*API) Register

func (api *API) Register(router *route.Router)

Register registers the handler for the various endpoints below /api.

Jump to

Keyboard shortcuts

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