web

package
v0.0.0-...-6f0fa88 Latest Latest
Warning

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

Go to latest
Published: May 28, 2015 License: Apache-2.0 Imports: 17 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 {
	AlertAggregates manager.AlertAggregates
	SilenceForAlert func(*manager.Alert) *manager.Silence
}

type AlertsHandler

type AlertsHandler struct {
	Manager                manager.AlertManager
	IsSilencedInterrogator manager.IsSilencedInterrogator
	PathPrefix             string
}

func (*AlertsHandler) ServeHTTP

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

type SilenceStatus

type SilenceStatus struct {
	Silences manager.Silences
}

type SilencesHandler

type SilencesHandler struct {
	Silencer   *manager.Silencer
	PathPrefix string
}

func (*SilencesHandler) ServeHTTP

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

type StatusHandler

type StatusHandler struct {
	BuildInfo  map[string]string
	Config     string
	Flags      map[string]string
	Birth      time.Time
	PathPrefix string
	// contains filtered or unexported fields
}

func (*StatusHandler) ServeHTTP

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

func (*StatusHandler) UpdateConfig

func (h *StatusHandler) UpdateConfig(c string)

type WebService

type WebService struct {
	AlertManagerService *api.AlertManagerService
	AlertsHandler       *AlertsHandler
	SilencesHandler     *SilencesHandler
	StatusHandler       *StatusHandler
}

func (WebService) ServeForever

func (w WebService) ServeForever(pathPrefix string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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