web

package
v0.0.0-...-8f0a3a0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2013 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertStatus

type AlertStatus struct {
	AlertingRules []*rules.AlertingRule
}

type AlertsHandler

type AlertsHandler struct {
	RuleManager rules.RuleManager
	// contains filtered or unexported fields
}

func (*AlertsHandler) ServeHTTP

func (h *AlertsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type DatabasesHandler

type DatabasesHandler struct {
	States []leveldb.DatabaseState

	Incoming chan []leveldb.DatabaseState
	// contains filtered or unexported fields
}

func (*DatabasesHandler) ServeHTTP

func (h *DatabasesHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type PrometheusStatus

type PrometheusStatus struct {
	BuildInfo   map[string]string
	Config      string
	Curation    metric.CurationState
	Flags       map[string]string
	RuleManager rules.RuleManager
	TargetPools map[string]*retrieval.TargetPool

	Birth time.Time
}

type StatusHandler

type StatusHandler struct {
	CurationState    chan metric.CurationState
	PrometheusStatus *PrometheusStatus
	// contains filtered or unexported fields
}

func (*StatusHandler) ServeHTTP

func (h *StatusHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type WebService

type WebService struct {
	StatusHandler    *StatusHandler
	DatabasesHandler *DatabasesHandler
	MetricsHandler   *api.MetricsService
	AlertsHandler    *AlertsHandler
}

func (WebService) ServeForever

func (w WebService) ServeForever() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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