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-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); } } 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 05d2076..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 @@ -493,7 +493,7 @@ - 2.0.0-SNAPSHOT + 2.0.0 3.1.0 0.9.1 2.24.0.wso2v1 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