grafana/pkg/services/alerting
Joan López de la Franca Beltran 6415d2802e
Plugins: Requests validator (#30445)
* Introduce PluginRequestValidator abstraction with a NoOp implementation

* Update PluginRequestValidator abstraction to use the dsURL instead

* Inject PluginRequestValidator into the HTTPServer and validate requests going through data source proxy

* Inject PluginRequestValidator into the BackendPluginManager and validate requests going through it

* Validate requests going through QueryMetrics & QueryMetricsV2

* Validate BackendPluginManager health requests

* Fix backend plugins manager tests

* Validate requests going through alerting service

* Fix tests

* fix tests

* goimports

Co-authored-by: Leonard Gram <leo@xlson.com>
2021-02-03 20:47:45 +01:00
..
conditions Plugins: Requests validator (#30445) 2021-02-03 20:47:45 +01:00
notifiers Plugins: Requests validator (#30445) 2021-02-03 20:47:45 +01:00
testdata Alerting: improve alerting default datasource search when extracting alerts (#29993) 2021-01-07 21:33:17 +01:00
alerting_usage_test.go API: Add by UID routes for data sources (#29884) 2021-01-13 13:16:27 -05:00
alerting_usage.go API: Add by UID routes for data sources (#29884) 2021-01-13 13:16:27 -05:00
commands.go tech: avoid alias for importing models in alerting (#17041) 2019-05-14 08:15:05 +02:00
engine_integration_test.go pkg/services: Check errors (#19712) 2019-10-22 14:08:18 +02:00
engine_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
engine.go Plugins: Requests validator (#30445) 2021-02-03 20:47:45 +01:00
eval_context_test.go Plugins: Requests validator (#30445) 2021-02-03 20:47:45 +01:00
eval_context.go Plugins: Requests validator (#30445) 2021-02-03 20:47:45 +01:00
eval_handler_test.go Plugins: Requests validator (#30445) 2021-02-03 20:47:45 +01:00
eval_handler.go Metrics: use consistent naming for exported variables (#18134) 2019-07-16 16:58:46 +02:00
extractor_test.go API: Add by UID routes for data sources (#29884) 2021-01-13 13:16:27 -05:00
extractor.go API: Add by UID routes for data sources (#29884) 2021-01-13 13:16:27 -05:00
interfaces.go Alerting: golint fixes for alerting (#17246) 2019-06-03 10:25:58 +02:00
models.go Chore: Fix various spelling errors in back-end code (#25241) 2020-06-01 17:11:25 +02:00
notifier_test.go Plugins: Requests validator (#30445) 2021-02-03 20:47:45 +01:00
notifier.go Alerting: Evaluate data templating in alert rule name and message (#29908) 2021-01-19 22:02:44 +01:00
reader.go Alerting: Log alert warnings for obsolete notifiers when extracting alerts and remove spammy error (#28162) 2020-10-22 14:43:12 +03:00
result_handler.go Chore: Enable errorlint linter (#29227) 2020-11-19 14:47:17 +01:00
rule_test.go Chore: Enable errorlint linter (#29227) 2020-11-19 14:47:17 +01:00
rule.go Chore: fix spelling mistake (#30473) 2021-01-21 09:17:46 +01:00
scheduler.go Chore/fix lint issues (#27704) 2020-09-22 16:22:19 +02:00
test_notification.go Plugins: Requests validator (#30445) 2021-02-03 20:47:45 +01:00
test_rule.go Plugins: Requests validator (#30445) 2021-02-03 20:47:45 +01:00
ticker_test.go Chore/fix lint issues (#27704) 2020-09-22 16:22:19 +02:00
ticker.go AlertingNG: Create a scheduler to evaluate alert definitions (#29305) 2020-12-17 16:00:09 +02:00