grafana/pkg/tsdb/elasticsearch
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
..
client Alerting: Improve alert rule testing (#16286) 2019-06-25 08:52:17 +02:00
elasticsearch.go Alerting: Improve alert rule testing (#16286) 2019-06-25 08:52:17 +02:00
models.go elasticsearch: support bucket script pipeline aggregations 2018-12-20 01:24:36 +01:00
response_parser_test.go Alerting: Improve alert rule testing (#16286) 2019-06-25 08:52:17 +02:00
response_parser.go Alerting: Improve alert rule testing (#16286) 2019-06-25 08:52:17 +02:00
time_series_query_test.go Alerting: Improve alert rule testing (#16286) 2019-06-25 08:52:17 +02:00
time_series_query.go Alerting: Improve alert rule testing (#16286) 2019-06-25 08:52:17 +02:00