From e2942342ba701adcfb6e99facc2ecd0ff6b2715b Mon Sep 17 00:00:00 2001 From: Ludek <13610612+ludeknovy@users.noreply.github.com> Date: Sun, 14 Mar 2021 12:20:37 +0100 Subject: [PATCH] perf analysis and thresholds refactoring (#115) --- src/app/app.module.ts | 4 + .../item-detail/item-detail.component.html | 107 +----------- .../item-detail/item-detail.component.scss | 9 - src/app/item-detail/item-detail.component.ts | 123 +------------- .../performance-analysis.component.css | 0 .../performance-analysis.component.html | 67 ++++++++ .../performance-analysis.component.spec.ts | 28 ++++ .../performance-analysis.component.ts | 154 ++++++++++++++++++ .../thresholds-alert.component.css | 7 + .../thresholds-alert.component.html | 40 +++++ .../thresholds-alert.component.spec.ts | 45 +++++ .../thresholds-alert.component.ts | 20 +++ 12 files changed, 375 insertions(+), 229 deletions(-) create mode 100644 src/app/item-detail/performance-analysis/performance-analysis.component.css create mode 100644 src/app/item-detail/performance-analysis/performance-analysis.component.html create mode 100644 src/app/item-detail/performance-analysis/performance-analysis.component.spec.ts create mode 100644 src/app/item-detail/performance-analysis/performance-analysis.component.ts create mode 100644 src/app/item-detail/thresholds-alert/thresholds-alert.component.css create mode 100644 src/app/item-detail/thresholds-alert/thresholds-alert.component.html create mode 100644 src/app/item-detail/thresholds-alert/thresholds-alert.component.spec.ts create mode 100644 src/app/item-detail/thresholds-alert/thresholds-alert.component.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 60348a67..3d7c80f8 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -59,6 +59,8 @@ import { ItemControlsComponent } from './scenario/item-controls/item-controls.co import { ShareComponent } from './item-detail/share/share.component'; import { CreateNewShareLinkComponent } from './item-detail/share/create-new-share-link/create-new-share-link.component'; import { DeleteShareLinkComponent } from './item-detail/share/delete-share-link/delete-share-link.component'; +import { ThresholdsAlertComponent } from './item-detail/thresholds-alert/thresholds-alert.component'; +import { PerformanceAnalysisComponent } from './item-detail/performance-analysis/performance-analysis.component'; const appRoutes: Routes = [ { path: 'dashboard', component: DashboardComponent, canActivate: [AuthGuard] }, @@ -138,6 +140,8 @@ const appRoutes: Routes = [ ShareComponent, CreateNewShareLinkComponent, DeleteShareLinkComponent, + ThresholdsAlertComponent, + PerformanceAnalysisComponent, ], imports: [ RouterModule.forRoot( diff --git a/src/app/item-detail/item-detail.component.html b/src/app/item-detail/item-detail.component.html index 9826593e..27e0a8db 100644 --- a/src/app/item-detail/item-detail.component.html +++ b/src/app/item-detail/item-detail.component.html @@ -57,115 +57,14 @@
90 percentile decrease toleration: {{itemData.thresholds.thresholds.percentile}} % -
-- Througput decrease toleration: {{itemData.thresholds.thresholds.throughput}}% -
-- Error rate increase toleration: {{itemData.thresholds.thresholds.errorRate}}% -
-90 percentile decrease toleration: {{itemData.thresholds.thresholds.percentile}} % +
++ Througput decrease toleration: {{itemData.thresholds.thresholds.throughput}}% +
++ Error rate increase toleration: {{itemData.thresholds.thresholds.errorRate}}% +
+