MCPcopy
hub / github.com/prometheus/pushgateway / status

Method status

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

Source from the content-addressed store, hash-verified

152}
153
154func (api *API) status(w http.ResponseWriter, r *http.Request) {
155 res := map[string]any{}
156 res["flags"] = api.Flags
157 res["start_time"] = api.StartTime
158 res["build_information"] = api.BuildInfo
159
160 api.respond(w, res)
161}
162
163type response struct {
164 Status status `json:"status"`

Callers 1

TestStatusAPIFunction · 0.80

Calls 1

respondMethod · 0.95

Tested by 1

TestStatusAPIFunction · 0.64