grafana/pkg/services/ngalert/api
Yuriy Tseretyan f75bea481d
Alerting: validate rules and calculate changes in API controller (#45072)
* Update API controller
   - add validation of rules API model
   - add function to calculate changes between the submitted alerts and existing alerts
   - update RoutePostNameRulesConfig to validate input models, calculate changes and apply in a transaction

* Update DBStore
   - delete unused storage method. All the logic is moved upstream.
   - upsert to not modify fields of new by values from the existing alert
   - if rule has UID do not try to pull it from db. (it is done upstream)

* Add rule generator
2022-02-23 11:30:04 -05:00
..
test-data 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
tooling add missing option to swagger spec (#45070) 2022-02-08 10:09:37 -05:00
api_admin.go Alerting: send alerts to external, internal, or both alertmanagers (#40341) 2022-02-01 20:36:55 -03:00
api_alertmanager_test.go Add context.Context to AlertingStore (#45069) 2022-02-09 09:22:09 +00:00
api_alertmanager.go Add context.Context to AlertingStore (#45069) 2022-02-09 09:22:09 +00:00
api_prometheus.go Alerting: Add context.Context to RuleStore (#45004) 2022-02-08 08:52:03 +00:00
api_ruler_test.go Alerting: validate rules and calculate changes in API controller (#45072) 2022-02-23 11:30:04 -05:00
api_ruler_validation_test.go Alerting: validate rules and calculate changes in API controller (#45072) 2022-02-23 11:30:04 -05:00
api_ruler_validation.go Alerting: validate rules and calculate changes in API controller (#45072) 2022-02-23 11:30:04 -05:00
api_ruler.go Alerting: validate rules and calculate changes in API controller (#45072) 2022-02-23 11:30:04 -05:00
api_testing.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
api.go Alerting: validate rules and calculate changes in API controller (#45072) 2022-02-23 11:30:04 -05:00
authorization.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
fork_ruler.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
forked_admin.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
forked_am.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
forked_prom.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
forked_testing.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
generated_base_api_alertmanager.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
generated_base_api_configuration.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
generated_base_api_prometheus.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
generated_base_api_ruler.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
generated_base_api_testing.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
lotex_am.go Remove Macaron ParamsInt64 function from code base (#43810) 2022-01-15 00:55:57 +08:00
lotex_prom.go Remove Macaron ParamsInt64 function from code base (#43810) 2022-01-15 00:55:57 +08:00
lotex_ruler.go Remove Macaron ParamsInt64 function from code base (#43810) 2022-01-15 00:55:57 +08:00
Makefile Alerting: Fix API specification (#38753) 2021-09-10 12:46:02 +03:00
promql_compat_test.go Alerting/testing promql extraction (#34665) 2021-05-25 11:54:50 -04:00
promql_compat.go Alerting: check upstream response content type in lotex proxy (#34760) 2021-05-27 14:12:29 +03:00
testing.go Add context.Context to AlertingStore (#45069) 2022-02-09 09:22:09 +00:00
util_test.go [Alerting]: implement backend checking for forking to Lotex ruler (#32208) 2021-03-23 18:08:57 +02:00
util.go Alerting: validate rules and calculate changes in API controller (#45072) 2022-02-23 11:30:04 -05:00