web

package
v0.0.0-...-7825352 Latest Latest
Warning

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

Go to latest
Published: May 12, 2014 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustBuildServerUrl

func MustBuildServerUrl() string

Types

type AlertStatus

type AlertStatus struct {
	AlertingRules        []*rules.AlertingRule
	AlertStateToRowClass map[rules.AlertState]string
}

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 DatabaseStatesProvider

type DatabaseStatesProvider interface {
	States() raw.DatabaseStates
}

type DatabasesHandler

type DatabasesHandler struct {
	RefreshInterval time.Duration
	NextRefresh     time.Time

	Current raw.DatabaseStates

	Provider DatabaseStatesProvider
	// contains filtered or unexported fields
}

func (*DatabasesHandler) Refresh

func (h *DatabasesHandler) Refresh()

func (*DatabasesHandler) ServeHTTP

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

type PrometheusStatusHandler

type PrometheusStatusHandler 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
	// contains filtered or unexported fields
}

func (*PrometheusStatusHandler) ServeHTTP

func (*PrometheusStatusHandler) UpdateCurationState

func (h *PrometheusStatusHandler) UpdateCurationState(c *metric.CurationState)

type WebService

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

	QuitDelegate func()
}

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