grafana/pkg/services/ngalert/api
Steve Simpson a0476741f2
Alerting: Fix HCL export for alerts with non-zero "for" field. (#76739)
* Alerting: Fix HCL export for alerts with non-zero "for" field.

Fixes #76734

* fix tests

---------

Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2023-10-20 11:09:08 +02: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 HCL export for alerts with non-zero "for" field. (#76739) 2023-10-20 11:09:08 +02: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_guards.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
api_alertmanager_test.go Alerting: Move legacy alert migration from sqlstore migration to service (#72702) 2023-10-12 13:43:10 +01:00
api_alertmanager.go Alerting: Fetch alerts from a remote Alertmanager (#75844) 2023-10-19 11:27:37 +02:00
api_configuration_test.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
api_configuration.go Identity: Unfurl OrgID in pkg/services to allow using identity.Requester interface (#76113) 2023-10-09 10:40:19 +02:00
api_prometheus_test_fixtures.go Expressions: Fixes the issue showing expressions editor (#62510) 2023-01-31 18:50:10 +01:00
api_prometheus_test.go Chore: remove IsDisabled method for access control (#74340) 2023-09-05 11:04:39 +01:00
api_prometheus.go Identity: Unfurl OrgID in pkg/services to allow using identity.Requester interface (#76113) 2023-10-09 10:40:19 +02:00
api_provisioning_test.go Alerting: Fix HCL export for alerts with non-zero "for" field. (#76739) 2023-10-20 11:09:08 +02:00
api_provisioning.go Alerting: Export of contact points to HCL (#75849) 2023-10-12 22:33:57 +01:00
api_ruler_export_test.go Alerting: Rule Modify Export APIs (#75322) 2023-10-02 11:47:59 -04:00
api_ruler_export.go Identity: Unfurl OrgID in pkg/services to allow using identity.Requester interface (#76113) 2023-10-09 10:40:19 +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: Rule Modify Export APIs (#75322) 2023-10-02 11:47:59 -04:00
api_ruler_validation_test.go Alerting: update rules POST API to validate query and condition only for rules that changed. (#68667) 2023-06-15 13:33:42 -04: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.go Identity: Unfurl OrgID in pkg/services to allow using identity.Requester interface (#76113) 2023-10-09 10:40:19 +02:00
api_testing_test.go Chore: remove IsDisabled method for access control (#74340) 2023-09-05 11:04:39 +01:00
api_testing.go Identity: Unfurl OrgID in pkg/services to allow using identity.Requester interface (#76113) 2023-10-09 10:40:19 +02:00
api.go Alerting: Use interfaces for the Alertmanager (#73900) 2023-09-06 07:59:29 -03:00
authorization_test.go Alerting: Rule Modify Export APIs (#75322) 2023-10-02 11:47:59 -04:00
authorization.go Alerting: Let users with regular permissions access export endpoints (#76082) 2023-10-06 14:48:20 -04:00
compat_contact_points_test.go Alerting: Export of contact points to HCL (#75849) 2023-10-12 22:33:57 +01:00
compat_contact_points.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
compat.go Alerting: Fix HCL export for alerts with non-zero "for" field. (#76739) 2023-10-20 11:09:08 +02:00
configuration.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
errors.go Alerting: Rule Modify Export APIs (#75322) 2023-10-02 11:47:59 -04: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 Alerting: Rule Modify Export APIs (#75322) 2023-10-02 11:47:59 -04: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_test.go Replace signed in user for identity.requester (#74048) 2023-08-30 16:51:18 +02:00
lotex_ruler.go Caching: Refactor enterprise query caching middleware to a wire service (#65616) 2023-04-12 12:30:33 -04:00
persist.go Alerting: Add UID of rules to response that were affected by update group request (#75985) 2023-10-07 01:11:24 +03:00
promql_compat_test.go Alerting: Update prometheus version (#65688) 2023-03-31 16:34:35 +02:00
promql_compat.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03: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_api.go Alerting: Repurpose rule testing endpoint to return potential alerts (#69755) 2023-06-08 18:59:54 -04:00
testing.go Chore: Fix ngalert Evaluate signature change (#73084) 2023-08-09 11:27:14 +02:00
util_test.go Chore: remove IsDisabled method for access control (#74340) 2023-09-05 11:04:39 +01:00
util.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00