grafana/pkg/services/ngalert/api
Rodrigo Villablanca ab83bc7346
Alerting: Fix export of notification policy to JSON (#78021)
* Export Notification Policy correctly (#78020)

The JSON version of an exported Notification Policy now
inline correctly the policy in the same way the Yaml version
does.

Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2023-12-04 16:57:37 -05:00
..
hcl Alerting: Export of alert rules in HCL format (#73166) 2023-09-11 11:48:23 -04:00
test-data Alerting: Fix HCL export for alerts with non-zero "for" field. (#76739) 2023-10-20 11:09:08 +02:00
tooling Alerting: Fix export of notification policy to JSON (#78021) 2023-12-04 16:57:37 -05:00
api.go Alerting: Update rule access control to return errutil errors (#78284) 2023-12-02 01:42:11 +02:00
api_alertmanager.go Alerting: Fetch receivers from remote Alertmanager (#76841) 2023-10-20 11:34:17 +02:00
api_alertmanager_guards.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
api_alertmanager_guards_test.go Alerting: Fix provenance guard checks for Alertmanager configuration to not cause panic when compared nested objects (#69009) 2023-05-25 11:41:11 -04:00
api_alertmanager_test.go Alerting: Remove ConfigHash() from the Alertmanager interface (#77134) 2023-10-25 17:11:53 +02:00
api_configuration.go NGAlerting: Use identity.Requester interface instead of SignedInUser (#76360) 2023-11-14 14:47:34 +00:00
api_configuration_test.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
api_prometheus.go Alerting: Update rule access control to return errutil errors (#78284) 2023-12-02 01:42:11 +02:00
api_prometheus_test.go Alerting: Extract alerting rules authorization logic to a service (#77006) 2023-11-15 18:54:54 +02:00
api_prometheus_test_fixtures.go Expressions: Fixes the issue showing expressions editor (#62510) 2023-01-31 18:50:10 +01:00
api_provisioning.go Alerting: Fix export of notification policy to JSON (#78021) 2023-12-04 16:57:37 -05:00
api_provisioning_test.go Alerting: Fix export of notification policy to JSON (#78021) 2023-12-04 16:57:37 -05:00
api_ruler.go Alerting: Update rule access control to return errutil errors (#78284) 2023-12-02 01:42:11 +02:00
api_ruler_export.go Alerting: Update rule access control to return errutil errors (#78284) 2023-12-02 01:42:11 +02:00
api_ruler_export_test.go Alerting: Fix flaky test TestExportRules (#77519) 2023-11-01 21:35:04 +02:00
api_ruler_history.go Identity: Unfurl OrgID in pkg/services to allow using identity.Requester interface (#76113) 2023-10-09 10:40:19 +02:00
api_ruler_test.go Alerting: Extract alerting rules authorization logic to a service (#77006) 2023-11-15 18:54:54 +02:00
api_ruler_validation.go Alerting: Sort RefIDs in error message returned by api.validateCondition (#70198) 2023-06-15 18:37:30 -03:00
api_ruler_validation_test.go Chore: Deprecate ID from Folder (#78281) 2023-11-20 15:44:51 -05:00
api_testing.go Alerting: Update rule access control to return errutil errors (#78284) 2023-12-02 01:42:11 +02:00
api_testing_test.go Alerting: Extract alerting rules authorization logic to a service (#77006) 2023-11-15 18:54:54 +02:00
authorization.go Alerting: Extract alerting rules authorization logic to a service (#77006) 2023-11-15 18:54:54 +02:00
authorization_test.go Alerting: Extract alerting rules authorization logic to a service (#77006) 2023-11-15 18:54:54 +02:00
compat.go Alerting: Fix export of notification policy to JSON (#78021) 2023-12-04 16:57:37 -05:00
compat_contact_points.go Alerting: Export of contact points to HCL (#75849) 2023-10-12 22:33:57 +01:00
compat_contact_points_test.go Alerting: Export of contact points to HCL (#75849) 2023-10-12 22:33:57 +01:00
compat_test.go Alerting: introduce AlertQuery in definitions package (#63825) 2023-03-27 11:55:13 -04:00
configuration.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
errors.go Alerting: Update rule access control to return errutil errors (#78284) 2023-12-02 01:42:11 +02:00
forking_alertmanager.go Alerting: Template Testing API (#67450) 2023-04-28 15:56:59 +01:00
forking_prometheus.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
forking_ruler.go Alerting: Rule Modify Export APIs (#75322) 2023-10-02 11:47:59 -04:00
generated_base_api_alertmanager.go instrumentation: change slogroup for alerting handlers to high-slow (#75460) 2023-09-29 14:56:48 +02:00
generated_base_api_configuration.go instrumentation: change slogroup for alerting handlers to high-slow (#75460) 2023-09-29 14:56:48 +02:00
generated_base_api_history.go instrumentation: change slogroup for alerting handlers to high-slow (#75460) 2023-09-29 14:56:48 +02:00
generated_base_api_prometheus.go instrumentation: change slogroup for alerting handlers to high-slow (#75460) 2023-09-29 14:56:48 +02:00
generated_base_api_provisioning.go instrumentation: change slogroup for alerting handlers to high-slow (#75460) 2023-09-29 14:56:48 +02:00
generated_base_api_ruler.go ngalert `make`: Support GNU install on Darwin (#78482) 2023-12-04 10:11:39 -05:00
generated_base_api_testing.go instrumentation: change slogroup for alerting handlers to high-slow (#75460) 2023-09-29 14:56:48 +02:00
hooks.go Chore: capitalise messages for alerting (#74335) 2023-09-04 18:46:34 +02:00
lotex_am.go Caching: Refactor enterprise query caching middleware to a wire service (#65616) 2023-04-12 12:30:33 -04:00
lotex_prom.go Caching: Refactor enterprise query caching middleware to a wire service (#65616) 2023-04-12 12:30:33 -04:00
lotex_ruler.go Caching: Refactor enterprise query caching middleware to a wire service (#65616) 2023-04-12 12:30:33 -04:00
lotex_ruler_test.go Replace signed in user for identity.requester (#74048) 2023-08-30 16:51:18 +02:00
persist.go Alerting: Decouple quota configuration logic from API interfaces and add tests (#78930) 2023-12-01 10:47:19 -06:00
promql_compat.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
promql_compat_test.go Alerting: Update prometheus version (#65688) 2023-03-31 16:34:35 +02:00
provisioning.go Alerting: Add notification policy provisioning file export (#70009) 2023-07-24 17:56:53 -04:00
ruler_history.go Alerting: Add endpoint for querying state history (#62166) 2023-02-02 11:34:00 -06:00
testing.go Alerting: Update rule access control to return errutil errors (#78284) 2023-12-02 01:42:11 +02:00
testing_api.go Alerting: Repurpose rule testing endpoint to return potential alerts (#69755) 2023-06-08 18:59:54 -04:00
util.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
util_test.go Chore: remove `IsDisabled` method for access control (#74340) 2023-09-05 11:04:39 +01:00