grafana/public/app/features/alerting/components
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
..
AlertDefinitionItem.tsx Alerting: temporarily add old ng routes (#32770) 2021-04-08 12:52:43 +03:00
AlertDefinitionOptions.tsx Alerting: adding query editor when creating threshold rule. (#33123) 2021-04-21 13:57:17 +02:00
AlertingQueryEditor.tsx Alerting: Run queries (#33423) 2021-05-04 16:31:25 +02:00
AlertingQueryPreview.tsx Alerting: adding query editor when creating threshold rule. (#33123) 2021-04-21 13:57:17 +02:00
AlertingQueryRows.tsx Alerting: Run queries (#33423) 2021-05-04 16:31:25 +02:00
BasicSettings.tsx Grafana-UI: Update React Hook Form to v7 (#33328) 2021-04-29 16:54:38 +03:00
ChannelSettings.tsx Alerts/InfoBox: Replaces all uses of InfoBox & FeatureInfoBox with Alert (#33352) 2021-04-26 07:18:46 +02:00
EmptyState.tsx Emotion: Upgrades emotion from 10 to 11 and updates all import paths (#32541) 2021-04-01 14:15:23 +02:00
NotificationChannelForm.tsx Grafana-UI: Update React Hook Form to v7 (#33328) 2021-04-29 16:54:38 +03:00
NotificationChannelOptions.tsx Grafana-UI: Update React Hook Form to v7 (#33328) 2021-04-29 16:54:38 +03:00
NotificationSettings.tsx Grafana-UI: Update React Hook Form to v7 (#33328) 2021-04-29 16:54:38 +03:00
OptionElement.tsx Grafana-UI: Update React Hook Form to v7 (#33328) 2021-04-29 16:54:38 +03:00
PreviewInstancesTab.tsx AlertingNG: Refactor the query preview component (#31281) 2021-03-15 10:17:21 +01:00
PreviewQueryTab.tsx Alerting: adding query editor when creating threshold rule. (#33123) 2021-04-21 13:57:17 +02:00