grafana/pkg/services/alerting
Artur Wierzbicki e96f67ae2e
Renderer: Add sanitize API (#50936)
* svg fun

* #50597: add proto

* #50597: add sanitizer methods

* #50597: add provider

* #50597: use sanitizer

* #50597: use sanitizer

* update grafana to match new api

* add comments

* add capability check

* add timing

* update sanitize path

* improve log message

* strings.HasPrefix rather than filepath.IsAbs

* filepath.Clean + filepath.ToSlash for windows

* read 404

* remove `path.clean` from `getPathAndScope`

* add resp body close

* remove unneeded prop

* Update pkg/services/rendering/rendering.go

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* remove test files

* filepath.ToSlash correct wrapping

* filepath.ToSlash correct wrapping

* filepath.ToSlash comment

* compilation error

* lint fix

* fix error message

* Update pkg/services/rendering/rendering.go

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* add `image/svg+xml` mime type

* refactored log

* refactored log

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
2022-07-07 15:32:18 +04:00
..
conditions backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
metrics Alerting: Remove unused features from ticker + metric + tests (#47828) 2022-04-22 15:09:47 -04:00
notifiers Alerting: notifiers/discord: Fix group mention documentation (#51071) 2022-06-21 05:34:49 +00:00
testdata Dashboard: Remove super old prop that has not been used in years (#50826) 2022-06-17 14:55:35 +02:00
alerting_usage_test.go backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
alerting_usage.go backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
engine_integration_test.go Chore: Make test tracer noop and return no errors (#50797) 2022-06-15 12:40:41 +02:00
engine_test.go backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
engine.go backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
eval_context_test.go move GetDashboardUIDById out of sqlstore and into dashboard service (#49170) 2022-05-19 10:13:02 -04:00
eval_context.go move GetDashboardUIDById out of sqlstore and into dashboard service (#49170) 2022-05-19 10:13:02 -04:00
eval_handler_test.go move GetDashboardUIDById out of sqlstore and into dashboard service (#49170) 2022-05-19 10:13:02 -04:00
eval_handler.go Apply templating on alert notifications on OK state (#47355) 2022-04-13 17:04:10 -03:00
extractor_test.go backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
extractor.go backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
interfaces.go Apply templating on alert notifications on OK state (#47355) 2022-04-13 17:04:10 -03:00
models.go Dashboard Alert Extractor: Create service for dashboard extractor and remove bus (#45518) 2022-02-28 09:54:56 +01:00
notifier_test.go Renderer: Add sanitize API (#50936) 2022-07-07 15:32:18 +04:00
notifier.go Alerting: Add validation to slack contact point (#45618) 2022-02-25 15:10:21 +01:00
reader.go Chore: Remove bus from alerting rule (#47508) 2022-04-08 14:30:25 +02:00
result_handler.go Chore: Remove bus from the alerting service (#44496) 2022-02-03 13:26:05 +01:00
rule_test.go Chore: Remove bus from alerting rule (#47508) 2022-04-08 14:30:25 +02:00
rule.go Chore: Remove bus from alerting rule (#47508) 2022-04-08 14:30:25 +02:00
scheduler.go Chore/fix lint issues (#27704) 2020-09-22 16:22:19 +02:00
service_test.go Alerting: Validate alert notification UID length (#45546) 2022-05-24 17:02:47 +02:00
service.go Alerting: Validate alert notification UID length (#45546) 2022-05-24 17:02:47 +02:00
test_notification.go move GetDashboardUIDById out of sqlstore and into dashboard service (#49170) 2022-05-19 10:13:02 -04:00
test_rule.go move GetDashboardUIDById out of sqlstore and into dashboard service (#49170) 2022-05-19 10:13:02 -04:00
ticker_test.go Alerting: Make ticker to tick at predictable time (#50197) 2022-06-10 10:27:17 -04:00
ticker.go Alerting: Make ticker to tick at predictable time (#50197) 2022-06-10 10:27:17 -04:00