MCPcopy Create free account
hub / github.com/prometheus/prometheus / notifications

Method notifications

web/api/v1/api.go:1996–1999  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

1994}
1995
1996func (api *API) notifications(w http.ResponseWriter, r *http.Request) {
1997 httputil.SetCORS(w, api.CORSOrigin, r)
1998 api.respond(w, r, api.notificationsGetter(), nil, "")
1999}
2000
2001func (api *API) notificationsSSE(w http.ResponseWriter, r *http.Request) {
2002 httputil.SetCORS(w, api.CORSOrigin, r)

Callers

nothing calls this directly

Calls 2

respondMethod · 0.95
SetCORSFunction · 0.92

Tested by

no test coverage detected