[SLICEANALYSIS] Fix bug in fetching PM data from DES 29/129229/3
authorNiranjana <niranjana.y60@wipro.com>
Wed, 11 May 2022 13:47:15 +0000 (13:47 +0000)
committerNiranjana Y <niranjana.y60@wipro.com>
Wed, 18 May 2022 08:19:24 +0000 (08:19 +0000)
Issue-ID: DCAEGEN2-3156
Signed-off-by: Niranjana <niranjana.y60@wipro.com>
Change-Id: I0ffa262b15701958c50312c7549e09ce94bb9617
(cherry picked from commit 3834528bd0ad36892e98acd49550ceb20cea7dec)

components/slice-analysis-ms/ChangeLog.md
components/slice-analysis-ms/pom.xml
components/slice-analysis-ms/src/main/java/org/onap/slice/analysis/ms/service/SliceUtilization.java
components/slice-analysis-ms/src/test/resources/pm_data.json
components/slice-analysis-ms/version.properties

index ab9ed1e..5521e8f 100644 (file)
@@ -4,7 +4,12 @@ All notable changes to this project will be documented in this file.
 The format is based on [Keep a Changelog](http://keepachangelog.com/)
 and this project adheres to [Semantic Versioning](http://semver.org/).
 
-## [1.1.2] - 2022/04/28
+
+## [1.1.3] - 2022/05/11
+         - [DCAEGEN2-3156](https://jira.onap.org/browse/DCAEGEN2-3156) - Fix bug in fetching PM data from DES
+
+## [1.1.2] - 2022/05/01
+
          - [DCAEGEN2-3145](https://jira.onap.org/browse/DCAEGEN2-3145) - Filter RAN related service instances in AAI
 
          - [DCAEGEN2-3146](https://jira.onap.org/browse/DCAEGEN2-3146) - Fetch CU Cells instead of DU cells data for ML message processing
index afcc6f6..21c62aa 100644 (file)
@@ -34,7 +34,7 @@
         </parent>
         <groupId>org.onap.dcaegen2.services.components</groupId>
         <artifactId>slice-analysis-ms</artifactId>
-        <version>1.1.2-SNAPSHOT</version>
+        <version>1.1.3-SNAPSHOT</version>
         <name>dcaegen2-services-slice-analysis-ms</name>
         <description>Network slice PM analyser</description>
         <packaging>jar</packaging>
index 1d53892..a9d30ce 100644 (file)
@@ -181,9 +181,9 @@ public class SliceUtilization {
                     numOfPRBData += measValuesArray.length();
                     for (int j = 0; j < measValuesArray.length(); j++) {
                         dlPRBUsed +=
-                                measValuesArray.getJSONArray(j).getJSONArray(2).getJSONArray(dlThptIndex).getInt(1);
+                                measValuesArray.getJSONArray(j).getJSONArray(1).getJSONArray(dlThptIndex).getInt(1);
                         ulPRBUsed +=
-                                measValuesArray.getJSONArray(j).getJSONArray(2).getJSONArray(ulThptIndex).getInt(1);
+                                measValuesArray.getJSONArray(j).getJSONArray(1).getJSONArray(ulThptIndex).getInt(1);
                     }
                 }
             }
index 4642e81..0f71116 100644 (file)
@@ -1,11 +1,11 @@
 {
    "result":[
       {
-         "measValuesList":"[[\"11220\",\"false\",[[1.0,\"75\"],[2.0,\"84\"]]],[\"11221\",\"false\",[[1.0,\"76\"],[2.0,\"85\"]]],[\"11222\",\"false\",[[1.0,\"90\"],[2.0,\"95\"]]]]",
+         "measValuesList":"[[\"false\",[[1.0,\"75\"],[2.0,\"84\"]],\"11220\"],[\"false\",[[1.0,\"76\"],[2.0,\"85\"]],\"11221\"],[\"false\",[[1.0,\"90\"],[2.0,\"95\"]],\"11222\",]]",
          "sMeasTypesList":"[\"SM.PrbUsedDl.01-06E442\",\"SM.PrbUsedUl.01-06E442\"]"
       },
       {
-         "measValuesList":"[[\"11225\",\"false\",[[1.0,\"175\"],[2.0,\"184\"]]],[\"11224\",\"false\",[[1.0,\"176\"],[2.0,\"185\"]]],[\"11222\",\"false\",[[1.0,\"105\"],[2.0,\"100\"]]]]",
+         "measValuesList":"[[\"false\",[[1.0,\"175\"],[2.0,\"184\"]],\"11225\"],[\"false\",[[1.0,\"176\"],[2.0,\"185\"]],\"11224\"],[\"false\",[[1.0,\"105\"],[2.0,\"100\"]],\"11222\"]]",
          "sMeasTypesList":"[\"SM.PrbUsedDl.01-06E442\",\"SM.PrbUsedUl.01-06E442\"]"
       }
    ],
index 299692b..fe037d0 100644 (file)
@@ -2,7 +2,7 @@
 #  ============LICENSE_START=======================================================
 #  slice-analysis-ms
 #  ================================================================================
-#   Copyright (C) 2020-2021 Wipro Limited.
+#   Copyright (C) 2020-2022 Wipro Limited.
 #   Copyright (C) 2022 Huawei Canada Limited.
 #   ==============================================================================
 #     Licensed under the Apache License, Version 2.0 (the "License");
@@ -21,7 +21,7 @@
 ###############################################################################
 major=1
 minor=1
-patch=2
+patch=3
 base_version=${major}.${minor}.${patch}
 release_version=${base_version}
 snapshot_version=${base_version}-SNAPSHOT