grafana/pkg/services/ngalert/api/tooling/definitions
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
..
alertmanager_test.go Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00
alertmanager.go Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00
api.go Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00
cortex-ruler_test.go Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00
cortex-ruler.go [Alerting]: Fix updating rule group and add tests (#33074) 2021-04-21 17:22:58 +03:00
prom.go Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00
testing_test.go Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00
testing.go Fix/ngalert generation (#33172) 2021-04-20 13:12:32 -04:00