grafana/pkg/services/alerting
Marcus Efraimsson 5713048f48
Alerting: Improve alert rule testing (#16286)
* tsdb: add support for setting debug flag of tsdb query

* alerting: adds debug flag in eval context

Debug flag is set when testing an alert rule and this debug
flag is used to return more debug information in test aler rule
response. This debug flag is also provided to tsdb queries so
datasources can optionally add support for returning additional
debug data

* alerting: improve test alert rule ui

Adds buttons for expand/collapse json and copy json to clipboard,
very similar to how the query inspector works.

* elasticsearch: implement support for tsdb query debug flag

* elasticsearch: embedding client response in struct

* alerting: return proper query model when testing rule
2019-06-25 08:52:17 +02:00
..
conditions Alerting: Improve alert rule testing (#16286) 2019-06-25 08:52:17 +02:00
notifiers Alerting: Add tags to alert rules (#10989) 2019-06-06 13:29:30 +02:00
testdata Returned id for alert notifications which were created without uid 2019-01-16 16:52:00 +02:00
commands.go tech: avoid alias for importing models in alerting (#17041) 2019-05-14 08:15:05 +02:00
engine_integration_test.go Alerting: golint fixes for alerting (#17246) 2019-06-03 10:25:58 +02:00
engine_test.go Alerting: golint fixes for alerting (#17246) 2019-06-03 10:25:58 +02:00
engine.go Alerting: golint fixes for alerting (#17246) 2019-06-03 10:25:58 +02:00
eval_context_test.go alerting: fix a bunch of lint issues. (#17128) 2019-05-20 12:13:32 +02:00
eval_context.go Alerting: Improve alert rule testing (#16286) 2019-06-25 08:52:17 +02:00
eval_handler_test.go Alerting: move getNewState to EvalContext 2018-03-21 20:59:39 +01:00
eval_handler.go alerting: fix a bunch of lint issues. (#17128) 2019-05-20 12:13:32 +02:00
extractor_test.go alerting: fix a bunch of lint issues. (#17128) 2019-05-20 12:13:32 +02:00
extractor.go alerting: fix a bunch of lint issues. (#17128) 2019-05-20 12:13:32 +02:00
interfaces.go Alerting: golint fixes for alerting (#17246) 2019-06-03 10:25:58 +02:00
models.go metrics: expose stats about roles as metrics (#17469) 2019-06-06 16:39:35 +02:00
notifier.go Alerting: golint fixes for alerting (#17246) 2019-06-03 10:25:58 +02:00
reader.go alerting: fix a bunch of lint issues. (#17128) 2019-05-20 12:13:32 +02:00
result_handler.go Alerting: golint fixes for alerting (#17246) 2019-06-03 10:25:58 +02:00
rule_test.go tech: avoid alias for importing models in alerting (#17041) 2019-05-14 08:15:05 +02:00
rule.go Alerting: Add tags to alert rules (#10989) 2019-06-06 13:29:30 +02:00
scheduler.go Alerting: golint fixes for alerting (#17246) 2019-06-03 10:25:58 +02:00
test_notification.go Alerting: golint fixes for alerting (#17246) 2019-06-03 10:25:58 +02:00
test_rule.go Alerting: Improve alert rule testing (#16286) 2019-06-25 08:52:17 +02:00
ticker_test.go moved icon (#10681) 2018-01-31 09:52:29 +01:00
ticker.go alerting: fix a bunch of lint issues. (#17128) 2019-05-20 12:13:32 +02:00