grafana/pkg/services/ngalert
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
..
api [Alerting]: Fix updating rule group and add tests (#33074) 2021-04-21 17:22:58 +03:00
eval [Alerting]: Implement test rule API route (#32837) 2021-04-13 20:58:34 +03:00
models [Alerting]: Fix updating rule group and add tests (#33074) 2021-04-21 17:22:58 +03:00
notifier Alerting: Various fixes for the alerts endpoint (#33182) 2021-04-21 06:34:42 -04:00
schedule Inhouse alerting api (#33129) 2021-04-19 14:26:04 -04:00
state Dparrott/labels on alert rule (#33057) 2021-04-16 15:11:40 +02:00
store [Alerting]: Fix updating rule group and add tests (#33074) 2021-04-21 17:22:58 +03:00
tests [Alerting]: Fix updating rule group and add tests (#33074) 2021-04-21 17:22:58 +03:00
ngalert.go Alerting: Return cached alerts for prometheus/api/v1/alerts (#32654) 2021-04-05 15:05:39 -07:00