From 4cfe74c3b20097a42b0b1c708c6973eaa1f68d97 Mon Sep 17 00:00:00 2001 From: Ludek Novy <13610612+ludeknovy@users.noreply.github.com> Date: Fri, 7 Apr 2023 22:32:39 +0200 Subject: [PATCH] external link (#317) --- src/app/item-detail/item-detail.component.html | 8 +++++++- src/app/item-detail/item-detail.component.ts | 4 +--- src/app/items-api.service.ts | 3 ++- src/app/items.service.model.ts | 1 + .../scenario/add-new-item/add-new-item.component.html | 9 +++++++++ .../scenario/add-new-item/add-new-item.component.ts | 10 ++++++---- src/app/scenario/item-controls/item-controls.model.ts | 1 + .../shared-item/edit-item/edit-item.component.html | 8 ++++++++ .../shared-item/edit-item/edit-item.component.ts | 11 ++++++++--- 9 files changed, 43 insertions(+), 12 deletions(-) diff --git a/src/app/item-detail/item-detail.component.html b/src/app/item-detail/item-detail.component.html index d3cc547f..228d8716 100644 --- a/src/app/item-detail/item-detail.component.html +++ b/src/app/item-detail/item-detail.component.html @@ -16,7 +16,7 @@ class="fas fa-bars"> +
+ +
External Link
+
Resources +
+
Max CPU usage
{{itemData.monitoring.cpu.max}}% diff --git a/src/app/item-detail/item-detail.component.ts b/src/app/item-detail/item-detail.component.ts index f9281ddf..609b30d1 100644 --- a/src/app/item-detail/item-detail.component.ts +++ b/src/app/item-detail/item-detail.component.ts @@ -35,6 +35,7 @@ export class ItemDetailComponent implements OnInit, OnDestroy { baseId: null, note: null, plot: null, + resourcesLink: null, extraPlotData: null, reportStatus: null, histogramPlotData: null, @@ -56,9 +57,7 @@ export class ItemDetailComponent implements OnInit, OnDestroy { statusChartOptions; updateChartFlag = false; updateScatterChartFlag = false; - monitoringChart; itemParams; - hasErrorsAttachment; Math: any; token: string; isAnonymous = false; @@ -68,7 +67,6 @@ export class ItemDetailComponent implements OnInit, OnDestroy { performanceAnalysisLines = null; externalSearchTerm = null; totalRequests = null; - overallChart = null; constructor( diff --git a/src/app/items-api.service.ts b/src/app/items-api.service.ts index 96c4eb97..eee275d8 100644 --- a/src/app/items-api.service.ts +++ b/src/app/items-api.service.ts @@ -30,7 +30,7 @@ export class ItemsApiService { } addNewTestItem(projectName: string, scenarioName: string, - environment: string = null, note, hostname, status, kpiFile, name, errorFile?, monitoringFile?) { + environment: string = null, note, hostname, status, kpiFile, name, resourcesLink, errorFile?, monitoringFile?) { const headers = new HttpHeaders(); headers.set("Content-Type", null); headers.set("Accept", "multipart/form-data"); @@ -41,6 +41,7 @@ export class ItemsApiService { formData.append("hostname", hostname); formData.append("status", status); formData.append("name", name); + formData.append("resourcesLink", resourcesLink); if (errorFile) { formData.append("errors", errorFile); } diff --git a/src/app/items.service.model.ts b/src/app/items.service.model.ts index 8c6e6d8c..4b8ee71b 100644 --- a/src/app/items.service.model.ts +++ b/src/app/items.service.model.ts @@ -35,6 +35,7 @@ export interface ItemDetail { baseId: string; name: string; note: string; + resourcesLink?: string; hostname: string; environment: string; plot: ItemDataPlot; diff --git a/src/app/scenario/add-new-item/add-new-item.component.html b/src/app/scenario/add-new-item/add-new-item.component.html index 8627ecd0..9fd72b9c 100644 --- a/src/app/scenario/add-new-item/add-new-item.component.html +++ b/src/app/scenario/add-new-item/add-new-item.component.html @@ -46,6 +46,15 @@ aria-describedby="inputGroup-sizing-default">
+
+ + + +
+
+
+ + + +
of(r))) .subscribe(_ => { this.itemDetailChange.emit({ note, environment, hostname, name });