grafana/public/app/features/alerting/state
Peter Holmberg 0006765a40
Alerting: Run queries (#33423)
* alertingqueryrunner first edition

* added so we always set name and uid when changing datasource.

* wip.

* wip

* added support for canceling requests.

* util for getting time ranges for expression queries

* remove logs, store data in state

* added structure for marble testing.

* change so the expression buttons doesnt submit form.

* fixed run button.

* replaced mocks with implementation that will set default query + expression.

* fixed so we set a datasource name for the default expression rule.

* improving expression guard.

* Update public/app/features/alerting/components/AlertingQueryEditor.tsx

Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>

* fixed some nits.

* some refactoring after feedback.

* use grafanthemev2

* rename grafanatheme

* fixing so we convert to correct relative time range.

* added some more tests.

* fixing so duplicating query works.

* added some more tests without marbles.

* small refactoring to share code between runRequest and alerting query runner.

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
2021-05-04 16:31:25 +02:00
..
actions.ts Theme: Move displayProcessor & fieldOverrides & visualizations to use new theme model (#33502) 2021-04-29 12:44:06 +02:00
alertDef.ts Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00
AlertingQueryRunner.test.ts Alerting: Run queries (#33423) 2021-05-04 16:31:25 +02:00
AlertingQueryRunner.ts Alerting: Run queries (#33423) 2021-05-04 16:31:25 +02:00
reducers.test.ts Migration: Edit notification channel (#25980) 2020-09-09 12:46:19 +02:00
reducers.ts Alerting: adding query editor when creating threshold rule. (#33123) 2021-04-21 13:57:17 +02:00
selectors.test.ts AlertingNG: List saved Alert definitions in Alert Rule list (#30603) 2021-01-26 12:12:41 +01:00
selectors.ts AlertingNG: List saved Alert definitions in Alert Rule list (#30603) 2021-01-26 12:12:41 +01:00
ThresholdMapper.test.ts Alerting: Hides threshold handle for percentual thresholds (#30431) 2021-01-21 06:23:09 +01:00
ThresholdMapper.ts Alerting: Hides threshold handle for percentual thresholds (#30431) 2021-01-21 06:23:09 +01:00