From edff8202f14ff56d42e90e156df6845ae878aa24 Mon Sep 17 00:00:00 2001 From: "k.kedron" Date: Fri, 2 Aug 2019 16:44:07 +0200 Subject: Add subcategory to the "createVFCMT" post body The DCAE-DS plugin should create the VFCMT with subcategory 'Base Monitoring Template'. Issue-ID: SDC-2484 Signed-off-by: Krystian Kedron Change-Id: I20bad630efcb719c3528b836e28d4e2d7616888a --- app/main/dashboard/dcaedt/dcaedt.controller.js | 2 ++ app/main/dashboard/dcaedt/dcaedt.factory.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'app/main/dashboard/dcaedt') diff --git a/app/main/dashboard/dcaedt/dcaedt.controller.js b/app/main/dashboard/dcaedt/dcaedt.controller.js index 1ce7b09..93df5fe 100644 --- a/app/main/dashboard/dcaedt/dcaedt.controller.js +++ b/app/main/dashboard/dcaedt/dcaedt.controller.js @@ -280,6 +280,8 @@ $scope.loader = true; generalUserInput.name = this.component.name; generalUserInput.description = this.component.description; + generalUserInput.subcategory = "Base Monitoring Template"; + console.log(JSON.stringify(generalUserInput, null, 4)); var config = { headers: { diff --git a/app/main/dashboard/dcaedt/dcaedt.factory.js b/app/main/dashboard/dcaedt/dcaedt.factory.js index 934ed76..b4e68aa 100644 --- a/app/main/dashboard/dcaedt/dcaedt.factory.js +++ b/app/main/dashboard/dcaedt/dcaedt.factory.js @@ -7,7 +7,7 @@ var factory = {}; factory.getVNFList = function () { - return $http.get(window.host + 'getResourcesByCategory'); + return $http.get(window.host + 'getResourcesByMonitoringTemplateCategory'); }; factory.postData = function (url, data, config) { -- cgit 1.2.3-korg