grafana/pkg/services/ngalert/models
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
..
alert_query_test.go AlertingNG/SSE: Datasource UID and UID/ID only (drop name) (#33039) 2021-04-16 15:29:19 +02:00
alert_query.go AlertingNG/SSE: Datasource UID and UID/ID only (drop name) (#33039) 2021-04-16 15:29:19 +02:00
alert_rule.go [Alerting]: Fix updating rule group and add tests (#33074) 2021-04-21 17:22:58 +03:00
alertmanager.go [Alerting]: Alertmanager API implementation (#32174) 2021-03-31 23:00:56 +03:00
eval_condition.go [Alerting]: Implement test rule API route (#32837) 2021-04-13 20:58:34 +03:00
instance_labels.go ngalerting: represent nil/empty labels the same (#32652) 2021-04-02 13:49:45 -04:00
instance.go Alerting: Return RuleResponse for api/prometheus/grafana/api/v1/rules (#32919) 2021-04-13 17:38:09 -04:00
legacy.go [Alerting]: Implement test rule API route (#32837) 2021-04-13 20:58:34 +03:00