From d6da1bb9be05e2bfcad6d476b81d4e40bbbd2827 Mon Sep 17 00:00:00 2001 From: Thanuja Kularathna Date: Tue, 28 Mar 2017 09:35:33 +0000 Subject: [PATCH 1/3] update pom version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 05d2076..48d00d6 100644 --- a/pom.xml +++ b/pom.xml @@ -493,7 +493,7 @@ - 2.0.0-SNAPSHOT + 2.0.0 3.1.0 0.9.1 2.24.0.wso2v1 From 1345bccb1ea7a4ddc8ecb40aabcaf5e8500f416c Mon Sep 17 00:00:00 2001 From: Thanuja Kularathna Date: Tue, 28 Mar 2017 09:41:17 +0000 Subject: [PATCH 2/3] [maven-release-plugin] prepare release v2_0_0 --- components/report-engine/pom.xml | 2 +- components/report-generator-extension/pom.xml | 2 +- features/hub-authentication-artifacts/pom.xml | 2 +- features/report-generator-artifacts/pom.xml | 2 +- pom.xml | 4 ++-- product/distribution/pom.xml | 2 +- product/p2-profile-gen/pom.xml | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/report-engine/pom.xml b/components/report-engine/pom.xml index 4b5f2e0..d9acdb2 100644 --- a/components/report-engine/pom.xml +++ b/components/report-engine/pom.xml @@ -18,7 +18,7 @@ org.wso2telco.analytics.hub org.wso2telco.analytics - 2.0.0-SNAPSHOT + 2.0.0 ../../pom.xml 4.0.0 diff --git a/components/report-generator-extension/pom.xml b/components/report-generator-extension/pom.xml index 7212470..c5b40ef 100644 --- a/components/report-generator-extension/pom.xml +++ b/components/report-generator-extension/pom.xml @@ -3,7 +3,7 @@ org.wso2telco.analytics org.wso2telco.analytics.hub - 2.0.0-SNAPSHOT + 2.0.0 ../../pom.xml diff --git a/features/hub-authentication-artifacts/pom.xml b/features/hub-authentication-artifacts/pom.xml index 4db3296..686fc63 100644 --- a/features/hub-authentication-artifacts/pom.xml +++ b/features/hub-authentication-artifacts/pom.xml @@ -3,7 +3,7 @@ org.wso2telco.analytics.hub org.wso2telco.analytics - 2.0.0-SNAPSHOT + 2.0.0 ../../pom.xml 4.0.0 diff --git a/features/report-generator-artifacts/pom.xml b/features/report-generator-artifacts/pom.xml index b55897f..5ec84fc 100644 --- a/features/report-generator-artifacts/pom.xml +++ b/features/report-generator-artifacts/pom.xml @@ -3,7 +3,7 @@ org.wso2telco.analytics.hub org.wso2telco.analytics - 2.0.0-SNAPSHOT + 2.0.0 ../../pom.xml 4.0.0 diff --git a/pom.xml b/pom.xml index 48d00d6..c3a75f8 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ org.wso2telco.analytics org.wso2telco.analytics.hub - 2.0.0-SNAPSHOT + 2.0.0 components/report-generator-extension components/report-engine @@ -460,7 +460,7 @@ https://github.com/WSO2Telco/analytics-extgw.git scm:git:https://github.com/WSO2Telco/analytics-extgw.git scm:git:https://github.com/WSO2Telco/analytics-extgw.git - HEAD + v2_0_0 diff --git a/product/distribution/pom.xml b/product/distribution/pom.xml index 15a4acc..20f6e23 100644 --- a/product/distribution/pom.xml +++ b/product/distribution/pom.xml @@ -20,7 +20,7 @@ org.wso2telco.analytics org.wso2telco.analytics.hub - 2.0.0-SNAPSHOT + 2.0.0 ../../pom.xml diff --git a/product/p2-profile-gen/pom.xml b/product/p2-profile-gen/pom.xml index bbe275e..a303c04 100644 --- a/product/p2-profile-gen/pom.xml +++ b/product/p2-profile-gen/pom.xml @@ -20,7 +20,7 @@ org.wso2telco.analytics org.wso2telco.analytics.hub - 2.0.0-SNAPSHOT + 2.0.0 ../../pom.xml From 841c7e4b7f2fb1ff53a352853483fd19ebde8443 Mon Sep 17 00:00:00 2001 From: buddhinipun Date: Fri, 31 Aug 2018 14:30:44 +0530 Subject: [PATCH 3/3] bug fix-EXTGWA-117 - empty traffic report --- .../hub/report/engine/internel/util/CSVWriter.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/report-engine/src/main/java/org/wso2telco/analytics/hub/report/engine/internel/util/CSVWriter.java b/components/report-engine/src/main/java/org/wso2telco/analytics/hub/report/engine/internel/util/CSVWriter.java index aa8faed..a323835 100644 --- a/components/report-engine/src/main/java/org/wso2telco/analytics/hub/report/engine/internel/util/CSVWriter.java +++ b/components/report-engine/src/main/java/org/wso2telco/analytics/hub/report/engine/internel/util/CSVWriter.java @@ -88,11 +88,16 @@ public static void writeTrafficCSV(List records, int bufSize, String fil if (records.size() > 0) { for (Record record : records) { String key = record.getValues().get("api").toString(); - if (apiCount.containsKey(key)) { + if (apiCount.containsKey(key) && record.getValues().containsKey("totalFailureCount")) { + count = apiCount.get(key) + Integer.parseInt(record.getValue("totalFailureCount").toString()); + } else if (!apiCount.containsKey(key) && record.getValues().containsKey("totalFailureCount")) { + count = Integer.parseInt(record.getValues().get("totalFailureCount").toString()); + } else if (apiCount.containsKey(key)) { count = apiCount.get(key) + Integer.parseInt(record.getValues().get("totalCount").toString()); } else { count = Integer.parseInt(record.getValues().get("totalCount").toString()); } + apiCount.put(key, count); } }