grafana/pkg/services/ngalert/api
gotjosh 23c7e7ab60
Alerting: Various fixes for the alerts endpoint (#33182)
A set of fixes for the GET alert and groups endpoints.

- First, is the fact that the default values where not being for the query params. I've introduced a new method in the Grafana context that allow us to do this.
- Second, is the fact that alerts were never being transitioned to active. To my surprise this is actually done by the inhibitor in the pipeline - if an alert is not muted, or inhibited then it's active.
- Third, I have added an integration test to cover for regressions.

Signed-off-by: Josue Abreu <josue@grafana.com>
2021-04-21 06:34:42 -04:00
..
test-data AlertingNG/SSE: Datasource UID and UID/ID only (drop name) (#33039) 2021-04-16 15:29:19 +02:00
tooling Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00
api_alertmanager.go Alerting: Various fixes for the alerts endpoint (#33182) 2021-04-21 06:34:42 -04:00
api_prometheus.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
api_ruler.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
api_testing.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
api.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
fork_ruler.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
forked_am.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
forked_prom.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
generated_base_api_alertmanager.go Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00
generated_base_api_prometheus.go Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00
generated_base_api_ruler.go Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00
generated_base_api_testing.go Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00
legacy_api_routes.go [Alerting]: Implement test rule API route (#32837) 2021-04-13 20:58:34 +03:00
legacy_trans_dev.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
lotex_am.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
lotex_prom.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
lotex_ruler.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
Makefile Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00
util_test.go [Alerting]: implement backend checking for forking to Lotex ruler (#32208) 2021-03-23 18:08:57 +02:00
util.go Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00