From 66bd1417e86d211da7f0218fb6431bf01a457bd2 Mon Sep 17 00:00:00 2001 From: Niranjana Date: Tue, 21 Apr 2020 17:13:17 +0530 Subject: Filter FM and PM events & change targetType to PNF Issue-ID: DCAEGEN2-2200 Signed-off-by: Niranjana Change-Id: Ib6479b5be8dfc0ce7f42395b5d048ada5d674ff3 (cherry picked from commit eeb52b53a4b8a209553698ac0df3155cf731a005) --- src/test/resources/pmNotification2.json | 45 +++++++++++++++++++++++++++++ src/test/resources/policy_notification.json | 2 +- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 src/test/resources/pmNotification2.json (limited to 'src/test/resources') diff --git a/src/test/resources/pmNotification2.json b/src/test/resources/pmNotification2.json new file mode 100644 index 0000000..b55f489 --- /dev/null +++ b/src/test/resources/pmNotification2.json @@ -0,0 +1,45 @@ + + { + "event":{ + "commonEventHeader":{ + "version":"4.0.1", + "domain":"measurement", + "eventName":"Measurement_RansimAgent-Wipro_HandoffMetric", + "eventId":"measurement000001", + "sequence":0, + "priority":"Normal", + "reportingEntityId":"cc305d54-75b4-431b-adb2-eb6b9e541234", + "reportingEntityName":"ncserver1", + "sourceId":"de305d54-75b4-431b-adb2-eb6b9e546456", + "sourceName":"Chn0002", + "startEpochMicrosec":1551772223000000, + "lastEpochMicrosec":1551790542000000, + "nfNamingCode":"SDN", + "nfVendorName":"Wipro", + "vesEventListenerVersion":"7.0.1", + "timeZoneOffset":"UTC-05:30" + }, + "measurementFields":{ + "measurementInterval":180, + "measurementFieldsVersion":"4.0", + "additionalMeasurements":[ + { + "hashMap":{ + "networkId":"plmnid1", + "InterEnbOutAtt_X2HO":"300", + "InterEnbOutSucc_X2HO":"100" + }, + "name":"Chn0004" + }, + { + "hashMap":{ + "networkId":"plmnid1", + "InterEnbOutAtt_X2HO":"250", + "InterEnbOutSucc_X2HO":"100" + }, + "name":"Chn0001" + } + ] + } + } +} diff --git a/src/test/resources/policy_notification.json b/src/test/resources/policy_notification.json index 35fe06c..767c024 100644 --- a/src/test/resources/policy_notification.json +++ b/src/test/resources/policy_notification.json @@ -3,7 +3,7 @@ "closedLoopAlarmStart": 1542445563201, "closedLoopEventClient": "microservice.PCI", "closedLoopEventStatus": "ONSET", - "target_type": "VNF", + "target_type": "PNF", "target": "generic-vnf.vnf-id", "requestID": "a4130fd5-2291-4a83-8992-04e4c9f32731", "from": "PCIMS", -- cgit 1.2.3-korg