web

package
v0.0.0-...-25b925c Latest Latest
Warning

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

Go to latest
Published: Feb 10, 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
}

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
}

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
	// 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() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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