From c1b5c67f788ec8c937859b9e16cbfe9488589e3f Mon Sep 17 00:00:00 2001 From: malar Date: Wed, 13 Jul 2022 05:41:41 +0000 Subject: Enhancements to KPI Computation MS for Kohn Release - Changes to support two types of PM XML schema - Throw an exception for Ratio and SumRatio computation when minimum operand size is not satisfied Issue-ID: DCAEGEN2-3193 Signed-off-by: Malarvizhi Paramasivam Change-Id: Ie9672bb11a5e98aa681bd1c7c7db59ea2be46112 --- .../src/test/resources/kpi/RAN.xml | 117 +++++++++ .../src/test/resources/kpi/kpi_config_slicing.json | 17 ++ .../test/resources/kpi/ves_message_slicing.json | 270 +++++++++++++++++++++ 3 files changed, 404 insertions(+) create mode 100644 components/kpi-computation-ms/src/test/resources/kpi/RAN.xml create mode 100644 components/kpi-computation-ms/src/test/resources/kpi/kpi_config_slicing.json create mode 100644 components/kpi-computation-ms/src/test/resources/kpi/ves_message_slicing.json (limited to 'components/kpi-computation-ms/src/test/resources/kpi') diff --git a/components/kpi-computation-ms/src/test/resources/kpi/RAN.xml b/components/kpi-computation-ms/src/test/resources/kpi/RAN.xml new file mode 100644 index 00000000..9b8da644 --- /dev/null +++ b/components/kpi-computation-ms/src/test/resources/kpi/RAN.xml @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + SM.PduSessionCreationSucc.0011-0010 + SM.PduSessionCreationReq.0011-0010 + SM.PduSessionCreationFail.0 + + 5813.0 + 3679.0 + 1333.0 + false + + + 5637.0 + 3406.0 + 1333.0 + false + + + 5130.0 + 3083.0 + 1333.0 + false + + + 6020.0 + 3956.0 + 1333.0 + false + + + 5527.0 + 4117.0 + false + + + 5086.0 + 3206.0 + false + + + 1655.0 + 1183.0 + false + + + 2587.0 + 1900.0 + false + + + 1668.0 + 1217.0 + false + + + 4904.0 + 3155.0 + false + + + 5357.0 + 3577.0 + false + + + 2177.0 + 1438.0 + false + + + 2480.0 + 1615.0 + false + + + 1730.0 + 1174.0 + false + + + 2227.0 + 1341.0 + false + + + + + + + diff --git a/components/kpi-computation-ms/src/test/resources/kpi/kpi_config_slicing.json b/components/kpi-computation-ms/src/test/resources/kpi/kpi_config_slicing.json new file mode 100644 index 00000000..bbc7fb2a --- /dev/null +++ b/components/kpi-computation-ms/src/test/resources/kpi/kpi_config_slicing.json @@ -0,0 +1,17 @@ +{ + "domain": "measurementsForKpi", + "methodForKpi": [{ + "eventName": "perf3gpp_CORE-cucpserver2_pmMeasResult", + "controlLoopSchemaType": "SLICE", + "policyScope": "resource=networkSlice;type=configuration", + "policyName": "configuration.dcae.microservice.pm-mapper.xml", + "policyVersion": "v0.0.1", + "kpis": [{ + "measType": "PDUSessionEstSR", + "operation": "RATIO", + "operands": ["SM.PduSessionCreationSucc","SM.PduSessionCreationReq"] + } + ] + } + ] +} diff --git a/components/kpi-computation-ms/src/test/resources/kpi/ves_message_slicing.json b/components/kpi-computation-ms/src/test/resources/kpi/ves_message_slicing.json new file mode 100644 index 00000000..41a8f91c --- /dev/null +++ b/components/kpi-computation-ms/src/test/resources/kpi/ves_message_slicing.json @@ -0,0 +1,270 @@ +{ + "event": { + "commonEventHeader": { + "domain": "perf3gpp", + "eventId": "243f63f4-bb54-4f65-8aab-d254cd5b026d", + "sequence": 0, + "eventName": "perf3gpp_CORE-cucpserver2_pmMeasResult", + "sourceName": "oteNB5309", + "reportingEntityName": "", + "priority": "Normal", + "startEpochMicrosec": 1610689590387, + "lastEpochMicrosec": 1610689590387, + "version": "4.0", + "vesEventListenerVersion": "7.1", + "timeZoneOffset": "UTC+05:00" + }, + "perf3gppFields": { + "perf3gppFieldsVersion": "1.0", + "measDataCollection": { + "granularityPeriod": 900, + "measuredEntityUserName": "", + "measuredEntityDn": "cucpserver2", + "measuredEntitySoftwareVersion": "r0.1", + "measInfoList": [ + { + "measInfoId": { + "sMeasInfoId": "measInfoIsVal" + }, + "measTypes": { + "sMeasTypesList": [ + "SM.PduSessionCreationSucc.0011-0010", + "SM.PduSessionCreationReq.0011-0010", + "SM.PduSessionCreationFail.0" + ] + }, + "measValuesList": [ + { + "measObjInstId": "10896", + "suspectFlag": "false", + "measResults": [ + { + "p": 1, + "sValue": "5813.0" + }, + { + "p": 2, + "sValue": "3679.0" + }, + { + "p": 3, + "sValue": "1333.0" + } + ] + }, + { + "measObjInstId": "10897", + "suspectFlag": "false", + "measResults": [ + { + "p": 1, + "sValue": "5637.0" + }, + { + "p": 2, + "sValue": "3406.0" + }, + { + "p": 3, + "sValue": "1333.0" + } + ] + }, + { + "measObjInstId": "11561", + "suspectFlag": "false", + "measResults": [ + { + "p": 1, + "sValue": "5130.0" + }, + { + "p": 2, + "sValue": "3083.0" + }, + { + "p": 3, + "sValue": "1333.0" + } + ] + }, + { + "measObjInstId": "11562", + "suspectFlag": "false", + "measResults": [ + { + "p": 1, + "sValue": "6020.0" + }, + { + "p": 2, + "sValue": "3956.0" + }, + { + "p": 3, + "sValue": "1333.0" + } + + ] + }, + { + "measObjInstId": "11568", + "suspectFlag": "false", + "measResults": [ + { + "p": 1, + "sValue": "5527.0" + }, + { + "p": 2, + "sValue": "4117.0" + } + ] + }, + { + "measObjInstId": "11569", + "suspectFlag": "false", + "measResults": [ + { + "p": 1, + "sValue": "5086.0" + }, + { + "p": 2, + "sValue": "3206.0" + } + ] + }, + { + "measObjInstId": "13905", + "suspectFlag": "false", + "measResults": [ + { + "p": 1, + "sValue": "1655.0" + }, + { + "p": 2, + "sValue": "1183.0" + } + ] + }, + { + "measObjInstId": "13910", + "suspectFlag": "false", + "measResults": [ + { + "p": 1, + "sValue": "2587.0" + }, + { + "p": 2, + "sValue": "1900.0" + } + ] + }, + { + "measObjInstId": "14427", + "suspectFlag": "false", + "measResults": [ + { + "p": 1, + "sValue": "1668.0" + }, + { + "p": 2, + "sValue": "1217.0" + } + ] + }, + { + "measObjInstId": "14655", + "suspectFlag": "false", + "measResults": [ + { + "p": 1, + "sValue": "4904.0" + }, + { + "p": 2, + "sValue": "3155.0" + } + ] + }, + { + "measObjInstId": "14656", + "suspectFlag": "false", + "measResults": [ + { + "p": 1, + "sValue": "5357.0" + }, + { + "p": 2, + "sValue": "3577.0" + } + ] + }, + { + "measObjInstId": "15360", + "suspectFlag": "false", + "measResults": [ + { + "p": 1, + "sValue": "2177.0" + }, + { + "p": 2, + "sValue": "1438.0" + } + ] + }, + { + "measObjInstId": "15361", + "suspectFlag": "false", + "measResults": [ + { + "p": 1, + "sValue": "2480.0" + }, + { + "p": 2, + "sValue": "1615.0" + } + ] + }, + { + "measObjInstId": "15548", + "suspectFlag": "false", + "measResults": [ + { + "p": 1, + "sValue": "1730.0" + }, + { + "p": 2, + "sValue": "1174.0" + } + ] + }, + { + "measObjInstId": "15549", + "suspectFlag": "false", + "measResults": [ + { + "p": 1, + "sValue": "2227.0" + }, + { + "p": 2, + "sValue": "1341.0" + } + ] + } + ] + } + ] + } + } + } +} -- cgit 1.2.3-korg