grafana/pkg/web
George Robinson d96b0a71d3
Alerting: Add limits to the Prometheus Rules API (#65169)
This commit adds a number of limits to the Grafana flavor of the
Prometheus Rules API:

1. `limit` limits the maximum number of Rule Groups returned
2. `limit_rules` limits the maximum number of rules per Rule Group
3. `limit_alerts` limits the maximum number of alerts per rule

It sorts Rule Groups and rules within Rule Groups such that data in the
response is stable across requests. It also returns summaries (totals) for
all Rule Groups, individual Rule Groups and rules.
2023-04-03 10:17:02 +01:00
..
webtest Chore: Fix goimports grouping (#62423) 2023-01-30 08:25:58 +00:00
binding_test.go Add nil checks to HTTP request validation dispatch (#44371) 2022-01-24 16:43:44 +01:00
binding.go Security: Sync security changes on main (#45083) 2022-02-09 13:44:38 +01:00
context_test.go Server: Write internal server error on missing write (#57813) 2022-11-07 16:14:41 +01:00
context.go Alerting: Add limits to the Prometheus Rules API (#65169) 2023-04-03 10:17:02 +01:00
macaron.go Chore: Fix goimports grouping (#62423) 2023-01-30 08:25:58 +00:00
macaron.s pkg/web: restrict handler types (#48495) 2022-05-20 12:45:18 -04:00
render.go pkg/web: closure-style middlewares (#51238) 2022-08-09 14:58:50 +02:00
response_writer_test.go Chore: Move remaining web framework code to pkg/web, remove macaron binding module (#43018) 2021-12-13 15:56:14 +01:00
response_writer.go pkg/web: detect Hijack() as chain write (#53466) 2022-08-09 16:04:21 +02:00
router.go pkg/web: closure-style middlewares (#51238) 2022-08-09 14:58:50 +02:00
tree.go Chore: Use strings.ReplaceAll and preallocate containers (#58483) 2022-11-09 17:17:09 +01:00
web.go Chore: Move remaining web framework code to pkg/web, remove macaron binding module (#43018) 2021-12-13 15:56:14 +01:00