grafana/pkg/services/ngalert/models
Alexander Weaver 49c8deb1ea
Alerting: Add recording rules to ruler API and validation (#87779)
* Read path, main API

* Define record field for incoming requests

* Refactor several alerting specific validators into two paths

* Refactor validateCondition actually contain all the condition validation logic

* Move condition validation inside rule path

* Validators for recording rules

* Wire feature flag through to validators

* Test for accepting a valid recording rule

* Tests for negative case, no UID

* Test for ignoring alerting fields

* Build conditions based on recording rules as well

* Regenerate swagger docs

* Fix CRUD test to cover the right thing

* Re-generate swagger docs with backdated v0.30.2 version

* Regenerate base spec

* Regenerate ngalert specs

* Regenerate top level specs

* Comment and rename

* Return struct instead of modifying ref
2024-05-21 14:39:28 -05:00
..
admin_configuration_test.go Alerting: Remove url based external alertmanagers config (#57918) 2022-11-10 16:34:13 +01:00
admin_configuration.go Alerting: Remove url based external alertmanagers config (#57918) 2022-11-10 16:34:13 +01:00
alert_query_test.go Alerting: Return better error for invalid time range on alert queries (#85611) 2024-04-05 09:20:21 -05:00
alert_query.go Alerting: Return better error for invalid time range on alert queries (#85611) 2024-04-05 09:20:21 -05:00
alert_rule_test.go Alerting: Add database migration for recording rule fields (#87012) 2024-05-09 12:12:44 -05:00
alert_rule.go Alerting: Add recording rules to ruler API and validation (#87779) 2024-05-21 14:39:28 -05:00
alertmanager.go Chore: Simplify function signature for GetLatestAlertmanagerConfiguration (#79392) 2023-12-12 13:49:54 +01:00
constants.go Plugins: Automatically forward plugin request HTTP headers in outgoing HTTP requests (#60417) 2022-12-21 13:25:58 +01:00
errors.go Alerting: Return better error for invalid time range on alert queries (#85611) 2024-04-05 09:20:21 -05:00
history.go NGAlerting: Use identity.Requester interface instead of SignedInUser (#76360) 2023-11-14 14:47:34 +00:00
image_test.go Alerting: Fix test fails in some environments (#58251) 2022-11-07 16:34:37 +00:00
image.go Alerting: Fix test fails in some environments (#58251) 2022-11-07 16:34:37 +00:00
instance_labels.go Alerting: Write and Delete multiple alert instances. (#55350) 2022-10-06 14:22:58 +08:00
instance_test.go Alerting: Add alert pausing feature (#60734) 2023-01-26 18:29:10 +01:00
instance.go Alerting: Support hysteresis command expression (#75189) 2024-01-04 11:47:13 -05:00
notifications_test.go Alerting: Prevent simplified routing zero duration GroupInterval and RepeatInterval (#86561) 2024-04-18 21:08:38 -04:00
notifications.go Alerting: Prevent simplified routing zero duration GroupInterval and RepeatInterval (#86561) 2024-04-18 21:08:38 -04:00
provisioning.go Drop ProvenanceOrgAdapter and build into store API instead (#48137) 2022-04-26 10:30:57 -05:00
receivers.go Alerting: Receivers API (read only endpoints) (#81751) 2024-02-05 20:12:15 +02:00
silence_test.go Alerting: Hook up GMA silence APIs to new authentication handler (#86625) 2024-05-03 15:32:30 -04:00
silence.go Alerting: Hook up GMA silence APIs to new authentication handler (#86625) 2024-05-03 15:32:30 -04:00
testing.go Alerting: Hook up GMA silence APIs to new authentication handler (#86625) 2024-05-03 15:32:30 -04:00
time.go Alerting: Fix test fails in some environments (#58251) 2022-11-07 16:34:37 +00:00