From eabe6d1df73c116d58f2d8baf5ec1dced6448a7f Mon Sep 17 00:00:00 2001 From: Ludek <13610612+ludeknovy@users.noreply.github.com> Date: Tue, 6 Apr 2021 00:03:03 +0200 Subject: [PATCH] bytes v2 (#132) --- src/app/item-detail/item-detail.component.html | 6 +++--- src/app/item-detail/item-detail.component.ts | 12 ++++++------ src/app/items.service.model.ts | 8 ++++++-- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/app/item-detail/item-detail.component.html b/src/app/item-detail/item-detail.component.html index 2fe4d08c..6b0b6742 100644 --- a/src/app/item-detail/item-detail.component.html +++ b/src/app/item-detail/item-detail.component.html @@ -160,10 +160,10 @@

+
-

{{convertBytesToMbps(itemData.overview.bytesPerSecond)}} {{convertBytesToMbps(itemData.overview.bytesPerSecond + itemData.overview.bytesSentPerSecond)}} Mbps

@@ -387,7 +387,7 @@
Request Statistics {{_.throughput || "n/a"}} {{_.throughputDiff}} - {{convertBytesToMbps(_.bytes * _.throughput) || "n/a"}} {{convertBytesToMbps(_.bytesPerSecond + _.bytesSentPerSecond) || "n/a"}} {{_.bytesDiff}} {{_.errorRate}} % { + if (overAllNetworkV2) { + const networkMbps = overAllNetworkV2.data.map((_) => { return [_[0], bytesToMbps(_[1])]; }); const networkLine = { ...networkLineSettings, data: networkMbps }; @@ -134,8 +134,8 @@ export class ItemDetailComponent implements OnInit { this.chartLines.overall.set('Error rate', errorLine); this.chartLines.overall.set('Throughput', throughputLine); - if (network) { - const networkMbps = network.map((_) => { + if (networkV2) { + const networkMbps = networkV2.map((_) => { _.data = _.data.map(__ => [__[0], bytesToMbps(__[1])]); return _; }); diff --git a/src/app/items.service.model.ts b/src/app/items.service.model.ts index a5adce8e..9a647855 100644 --- a/src/app/items.service.model.ts +++ b/src/app/items.service.model.ts @@ -57,11 +57,15 @@ export interface ItemDataPlot { minResponseTime: LabelSeries[]; maxResponseTime: LabelSeries[]; throughput: LabelSeries[]; - network: LabelSeries[]; + networkV2: LabelSeries[]; + networkUp: LabelSeries[]; + networkDown: LabelSeries[]; percentile90?: LabelSeries[]; percentile95?: LabelSeries[]; percentile99?: LabelSeries[]; - overallNetwork: any; + overAllNetworkV2: any; + overallNetworkUp: any; + overallNetworkDown: any; overallTimeResponse: any; overallThroughput: any; overAllFailRate: any;