From 4308ac023373157f4255088efba7cdb34115bff7 Mon Sep 17 00:00:00 2001 From: Zhuangyang <418624178@qq.com> Date: Sun, 22 Aug 2021 11:13:46 +0800 Subject: [PATCH] New DGs added for CCVPN scenario enhancement. Fix DGs URL and add rest-api template Issue-ID: CCSDK-3389 Signed-off-by: zychen <418624178@qq.com> Change-Id: I0d77a0ffe2b20e55a8cb21a2771838b19013515f Former-commit-id: 929ae023c5e20f3a8e95cbef72647184f8ec3c67 --- ...IC-RESOURCE-API_performance-data-collector.json | 32 +++++++++++----------- ...RIC-RESOURCE-API_performance-data-collector.xml | 6 ++-- .../src/main/json/performace-data-collector.json | 16 +++++++++++ 3 files changed, 34 insertions(+), 20 deletions(-) create mode 100644 platform-logic/restapi-templates/src/main/json/performace-data-collector.json diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_performance-data-collector.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_performance-data-collector.json index 9b89daac..fb5ec10a 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_performance-data-collector.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_performance-data-collector.json @@ -91,26 +91,26 @@ "id": "57ac747a.c5062c", "type": "execute", "name": "execute RestApiCallNode to performance-data-collector", - "xml": "\n\n\n\n\n\n\n", - "comments": "", - "outputs": 1, - "x": 329.5992431640625, - "y": 962.920654296875, - "z": "f85a283.735a0d8", - "wires": [ + "xml": "\n\n\n", + "id": "522d781.14b7388", + "type": "not-found", + "name": "not-found", + "xml": "\n", "comments": "", "outputs": 1, "x": 1052.3556938171387, @@ -234,4 +234,4 @@ [] ] } -] \ No newline at end of file +] \ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_performance-data-collector.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_performance-data-collector.xml index 9741ba38..b069dd14 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_performance-data-collector.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_performance-data-collector.xml @@ -20,10 +20,8 @@ ","comments":"","x":1532.8334693908691,"y":1024.3891944885254,"z":"f85a283.735a0d8","wires":[]},{"id":"57ac747a.c5062c","type":"execute","name":"execute RestApiCallNode to performance-data-collector","xml":" \n - \n\n\n\n + \n\n ","comments":"","outputs":1,"x":329.5992431640625,"y":962.920654296875,"z":"f85a283.735a0d8","wires":[["a89016ec.95b9f8","dbad8b12.6a55c8","522d781.14b7388","7c72a790.675628"]]},{"id":"522d781.14b7388","type":"not-found","name":"not-found","xml":" diff --git a/platform-logic/restapi-templates/src/main/json/performace-data-collector.json b/platform-logic/restapi-templates/src/main/json/performace-data-collector.json new file mode 100644 index 00000000..52cb813c --- /dev/null +++ b/platform-logic/restapi-templates/src/main/json/performace-data-collector.json @@ -0,0 +1,16 @@ +{ + "ietf-service-pm:performance-monitoring": { + "service-pm": [ + { + "service-name": ${collect-performance-data-input.collect-performance-data.service-name}, + "task-pm-enable": "true", + "granularity": "granularity-1min", + "performance-data-config": [ + { + "parameter-name": "ietf-eth-tran-types:ingress-bandwidth", + "measure-method": "measure-at-ingress" + } + } + ] + } +} \ No newline at end of file -- 2.16.6