web

package
v0.0.0-...-7afe134 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2014 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIRedirect

func APIRedirect(w http.ResponseWriter, req *http.Request)

func Action

func Action(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func Alerts

func Alerts(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func Config

func ConfigTest

func ConfigTest(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request)

func Expr

func Expr(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func ExprGraph

func ExprGraph(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func GetMetadata

func GetMetadata(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func Graph

func Graph(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

Graph takes an OpenTSDB request data structure and queries OpenTSDB. Use the json parameter to pass JSON. Use the b64 parameter to pass base64-encoded JSON.

func HealthCheck

func HealthCheck(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func Host

func Host(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func JSON

func JSON(h func(miniprofiler.Timer, http.ResponseWriter, *http.Request) (interface{}, error)) http.Handler

func Listen

func Listen(listenAddr, webDirectory string, tsdbHost *url.URL) error

func MetadataMetrics

func MetadataMetrics(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func MetricsByTagPair

func MetricsByTagPair(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func PutMetadata

func PutMetadata(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func Relay

func Relay(dest *url.URL) http.Handler

func Rule

func Rule(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func Run

func Run(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func SilenceClear

func SilenceClear(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func SilenceGet

func SilenceGet(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func SilenceSet

func SilenceSet(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func Status

func Status(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func TagKeysByMetric

func TagKeysByMetric(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func TagValuesByMetricTagKey

func TagValuesByMetricTagKey(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func TagValuesByTagKey

func TagValuesByTagKey(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func Templates

func Templates(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

func UniqueMetrics

func UniqueMetrics(t miniprofiler.Timer, w http.ResponseWriter, r *http.Request) (interface{}, error)

A Sorted List of Available Metrics

Types

type Health

type Health struct {
	// RuleCheck is true if last check happened within the check frequency window.
	RuleCheck bool
}

type MultiError

type MultiError map[string]error

func (MultiError) Error

func (m MultiError) Error() string

type Res

type Res struct {
	*sched.Event
	Key expr.AlertKey
}

Jump to

Keyboard shortcuts

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