grafana/pkg
Steve Simpson a6ad2380bf
Alerting: Refactor api_prometheus.go request handlers. (#86639)
This splits the request handlers into two functions, one which is the actual
handler and one which is independent from the Grafana `ReqContext` object. This
is to make it easier to reuse the implementation in other code.

Part of the refactoring changes the functions which get query parameters from
the request to operate on a `url.Values` instead of the request object.

The change also makes the code consistently use `req.Form` instead of a
combination of `req.URL.Query()` and `req.Form`, though I have left
`api_ruler` as-is to avoid this PR growing too large.
2024-04-23 14:50:26 +02:00
..
api
apimachinery
apis
apiserver
build
bus
cmd
codegen
components
events
expr
extensions
generated
ifaces/gcsifaces
infra
kinds
login/social
middleware
mocks/mock_gcsifaces
models
modules
plugins
promlib
registry
server
services Alerting: Refactor api_prometheus.go request handlers. (#86639) 2024-04-23 14:50:26 +02:00
setting Short Links: Add setting for changing expiration time (#86003) 2024-04-22 07:39:24 -05:00
tests
tsdb Loki: Fix setting of tenant ID (#86433) 2024-04-22 21:02:56 +01:00
util
web
README.md
ruleguard.rules.go

This directory contains the code for the Grafana backend.

The contributor documentation for Grafana's backend is in /contribute/backend/README.md.