grafana/pkg/services/ngalert/api/test-data
Sofia Papagiannaki d1dab5828d
Alerting: Update rule API to address folders by UID (#74600)
* Change ruler API to expect the folder UID as namespace

* Update example requests

* Fix tests

* Update swagger

* Modify FIle field in /api/prometheus/grafana/api/v1/rules

* Fix ruler export

* Modify folder in responses to be formatted as <parent UID>/<title>

* Add alerting test with nested folders

* Apply suggestion from code review

* Alerting: use folder UID instead of title in rule API (#77166)

Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>

* Drop a few more latent uses of namespace_id

* move getNamespaceKey to models package

* switch GetAlertRulesForScheduling to use folder table

* update GetAlertRulesForScheduling to return folder titles in format `parent_uid/title`.

* fi tests

* add tests for GetAlertRulesForScheduling when parent uid

* fix integration tests after merge

* fix test after merge

* change format of the namespace to JSON array

this is needed for forward compatibility, when we migrate to full paths

* update EF code to decode nested folder

---------

Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
Co-authored-by: Virginia Cepeda <virginia.cepeda@grafana.com>
Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>
Co-authored-by: Alex Weaver <weaver.alex.d@gmail.com>
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-01-17 11:07:39 +02:00
..
admin_config.http Alerting: Remove ngalert feature toggle and introduce two new settings for enabling Grafana 8 alerts and disabling them for specific organisations (#38746) 2021-09-29 16:16:40 +02:00
alertmanager_default_mutetimings-export.hcl Alerting: Add export of mute timings to file provisioning formats (#79225) 2023-12-11 21:36:51 -05:00
alertmanager_default_mutetimings-export.json Alerting: Add export of mute timings to file provisioning formats (#79225) 2023-12-11 21:36:51 -05:00
alertmanager_default_mutetimings-export.yaml Alerting: Add export of mute timings to file provisioning formats (#79225) 2023-12-11 21:36:51 -05:00
am-alertmanager-recipient.http Alerting: modify alertmanager endpoints for proxying using the datasource UID (#47978) 2022-04-29 10:25:22 +03:00
am-grafana-recipient.http Alerting: Implement /status for the notification system (#33227) 2021-06-15 19:14:02 +03:00
am-unsupported-backends.http [Alerting]: Require login for alerting API routes (#32688) 2021-04-06 17:22:05 +03:00
post-rulegroup-42.json Expressions: Fixes the issue showing expressions editor (#62510) 2023-01-31 18:50:10 +01:00
post-rulegroup-101-export.hcl Alerting: Fix HCL export for alerts with non-zero "for" field. (#76739) 2023-10-20 11:09:08 +02:00
post-rulegroup-101-export.json Alerting: Fix HCL export for alerts with non-zero "for" field. (#76739) 2023-10-20 11:09:08 +02:00
post-rulegroup-101-export.yaml Alerting: Fix HCL export for alerts with non-zero "for" field. (#76739) 2023-10-20 11:09:08 +02:00
post-rulegroup-101.json Alerting: Fix HCL export for alerts with non-zero "for" field. (#76739) 2023-10-20 11:09:08 +02:00
post-silence-data.json AlertingNG: Unified alerting API mock (#32040) 2021-03-17 12:47:03 +02:00
post-user-config.json [Alerting]: fix/cleanup API examples (#34588) 2021-05-31 11:18:29 +03:00
prom.http [Alerting]: Several modifications in alert rules (#32983) 2021-04-15 15:54:37 +03:00
ruler-cortex-recipient.http Alerting: modify ruler endpoints for proxying using the datasource UID (#48046) 2022-05-05 14:58:32 +03:00
ruler-grafana-recipient.http Alerting: Update rule API to address folders by UID (#74600) 2024-01-17 11:07:39 +02:00
ruler-loki-recipient.http Alerting: modify ruler endpoints for proxying using the datasource UID (#48046) 2022-05-05 14:58:32 +03:00
test-receiver.json AlertingNG: Unified alerting API mock (#32040) 2021-03-17 12:47:03 +02:00
test-rule.json Expressions: Fixes the issue showing expressions editor (#62510) 2023-01-31 18:50:10 +01:00
test.http Expressions: Fixes the issue showing expressions editor (#62510) 2023-01-31 18:50:10 +01:00