MCPcopy Create free account
hub / github.com/aptly-dev/aptly / apiMetricsGet

Function apiMetricsGet

api/router.go:27–32  ·  view source on GitHub ↗

@Summary Get Metrics @Description **Get Prometheus Metrics** @Tags Status @Produce text/plain @Success 200 {string} string Metrics @Router /api/metrics [get]

()

Source from the content-addressed store, hash-verified

25// @Success 200 {string} string Metrics
26// @Router /api/metrics [get]
27func apiMetricsGet() gin.HandlerFunc {
28 return func(c *gin.Context) {
29 countPackagesByRepos()
30 promhttp.Handler().ServeHTTP(c.Writer, c.Request)
31 }
32}
33
34func redirectSwagger(c *gin.Context) {
35 if c.Request.URL.Path == "/docs/index.html" {

Callers 1

RouterFunction · 0.85

Calls 1

countPackagesByReposFunction · 0.85

Tested by

no test coverage detected