Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertStatus ¶
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 SilencesHandler ¶
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(addr string, pathPrefix string) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.