grafana/pkg/services/ngalert/api
Sofia Papagiannaki 87a70af7eb
[Alerting]: Fix updating rule group and add tests (#33074)
* [Alerting]: Fix updating rule group and add test

* Fix updating rule labels
* Set default values for rule no data and error states
if they are missing
* Add test for updating rule

* Test updating annotations

* Apply suggestions from code review

Co-authored-by: gotjosh <josue@grafana.com>

* add test for posting an unknown rule UID

* Fix alert rule validation and add tests

* Remove org id from PostableGrafanaRule

This field was not used; each rule gets the organisation of the user making
the rerquest

* Update pkg/tests/api/alerting/api_alertmanager_test.go

Co-authored-by: gotjosh <josue@grafana.com>
2021-04-21 17:22:58 +03:00
..
test-data AlertingNG/SSE: Datasource UID and UID/ID only (drop name) (#33039) 2021-04-16 15:29:19 +02:00
tooling [Alerting]: Fix updating rule group and add tests (#33074) 2021-04-21 17:22:58 +03: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 [Alerting]: Fix updating rule group and add tests (#33074) 2021-04-21 17:22:58 +03: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