grafana/public/app/features/alerting/unified
Marcus Andersson c9e28044f1
Alerting: view to display alert rule and its underlying data. (#35546)
* add page and basic things

* quick annotations

* added so we can run queries on the view rule page.

* wip.

* merge

* cleaned up the combined rule hook.

* readd queries

* fixing so you can run queries.

* renamed variable.

* fix rerenders and visualizing

* minor fixes.

* work in progress.

* wip

* a working version that can be tested.

* changing check if we have data.

* removed unused styling.

* removed unused dep.

* removed another dep.

* Update public/app/features/alerting/unified/hooks/useCombinedRule.ts

Co-authored-by: Domas <domas.lapinskas@grafana.com>

* Update public/app/features/alerting/unified/hooks/useCombinedRule.ts

Co-authored-by: Domas <domas.lapinskas@grafana.com>

* refactored and changed UI according to figma.

* resseting menu item.

* removing unused external link.

* refactor according to feedback.

* changed so we always fetch the rule.

* fixing so datasource only is displayed once. Also changed so we only navigate to alert list when rule has been deleted.

* removed unused dep.

* Will display query as json if we can't find data source.

* changed to a function instead of the React.FC.

* refactoring of id generation and added support to generate ids for native prometheus alerts without ruler.

* set max width on page content

* added page where you can easily link to a rule in grafana.

* listing rules with same name.

* fixing error cases.

* updates after pr feedback

* more pr feedback

* use 1h-now as timerange

* remove unused import

* start on test

* add test for cloud case

* add ruleview render test

* add render tests for grafana and cloud alerts

* add mock for backendsrv

* add rendering test for the find route

* check if cards are rendered

Co-authored-by: Peter Holmberg <peter.hlmbrg@gmail.com>
Co-authored-by: Domas <domas.lapinskas@grafana.com>
2021-07-01 12:02:41 +02:00
..
api Alerting: for cortex am, load default config from status if theres no user config (#35769) 2021-06-23 09:32:42 -07:00
components Alerting: view to display alert rule and its underlying data. (#35546) 2021-07-01 12:02:41 +02:00
hooks Alerting: view to display alert rule and its underlying data. (#35546) 2021-07-01 12:02:41 +02:00
mocks Clarify that Threema Gateway Alerts support only Basic IDs (#34828) 2021-05-28 08:54:55 +02:00
state Alerting: view to display alert rule and its underlying data. (#35546) 2021-07-01 12:02:41 +02:00
styles Alerting: Updates the new alerting rule table to use new theme (#33684) 2021-05-04 13:38:01 +02:00
types Alerting: rename type to make it obvious what part of the code base it belongs to. (#34714) 2021-05-27 12:29:10 +02:00
utils Alerting: view to display alert rule and its underlying data. (#35546) 2021-07-01 12:02:41 +02:00
AmRoutes.test.tsx Alerting: miscellaneous alertmanager config issues, tests (#35364) 2021-06-14 15:37:28 +03:00
AmRoutes.tsx Alerting: miscellaneous alertmanager config issues, tests (#35364) 2021-06-14 15:37:28 +03:00
mocks.ts Alerting: for cortex am, load default config from status if theres no user config (#35769) 2021-06-23 09:32:42 -07:00
PanelAlertTab.tsx Alerting: update panel alert tab (#33850) 2021-05-17 10:39:42 +03:00
PanelAlertTabContent.tsx Alerting: various rule form fixes (#34272) 2021-05-18 19:14:57 +03:00
Receivers.test.tsx Alerting: for cortex am, load default config from status if theres no user config (#35769) 2021-06-23 09:32:42 -07:00
Receivers.tsx Alerting: wrap top level components in ErrorBoundary (#34040) 2021-05-18 13:56:31 +03:00
RedirectToRuleViewer.test.tsx Alerting: view to display alert rule and its underlying data. (#35546) 2021-07-01 12:02:41 +02:00
RedirectToRuleViewer.tsx Alerting: view to display alert rule and its underlying data. (#35546) 2021-07-01 12:02:41 +02:00
RuleEditor.tsx Alerting: view to display alert rule and its underlying data. (#35546) 2021-07-01 12:02:41 +02:00
RuleList.test.tsx Alerting: make rule list page work on mobile (#35991) 2021-06-23 09:27:47 +03:00
RuleList.tsx Alerting: misc rule list fixes (#34400) 2021-05-19 18:54:03 +03:00
RuleViewer.test.tsx Alerting: view to display alert rule and its underlying data. (#35546) 2021-07-01 12:02:41 +02:00
RuleViewer.tsx Alerting: view to display alert rule and its underlying data. (#35546) 2021-07-01 12:02:41 +02:00
Silences.tsx Alerting: wrap top level components in ErrorBoundary (#34040) 2021-05-18 13:56:31 +03:00