aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorStanislav Marszalek <s.marszalek2@partner.samsung.com>2021-09-09 12:23:34 +0200
committerStanislav Marszalek <s.marszalek2@partner.samsung.com>2021-09-09 12:23:34 +0200
commit73f7e4d48b23b8578c684afdd53d574031cc6ffd (patch)
tree98af8eeac1cbc8dd0904d1544981a959206ff0fb /src/main/java
parent389be7e5ebe9dcef83f661dba18632fdd7b05b8b (diff)
MeasurementValue to be ignored in Json
Issue-ID: INT-1945 Signed-off-by: Stanislav Marszalek <s.marszalek2@partner.samsung.com> Change-Id: I02d3684c98d563d7f386de2fdf032e930ac61b3f
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/onap/a1pesimulator/data/ves/MeasurementFields.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/onap/a1pesimulator/data/ves/MeasurementFields.java b/src/main/java/org/onap/a1pesimulator/data/ves/MeasurementFields.java
index 5fe98b3..8432c65 100644
--- a/src/main/java/org/onap/a1pesimulator/data/ves/MeasurementFields.java
+++ b/src/main/java/org/onap/a1pesimulator/data/ves/MeasurementFields.java
@@ -15,10 +15,13 @@ package org.onap.a1pesimulator.data.ves;
import static org.onap.a1pesimulator.util.Constants.MEASUREMENT_FIELD_VALUE;
-import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
+
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
@@ -43,6 +46,7 @@ public class MeasurementFields {
private String name;
private Map<String, String> hashMap;
+ @JsonIgnore
public String getMeasurementValue() {
if (hashMap.containsKey(MEASUREMENT_FIELD_VALUE)) {
return hashMap.get(MEASUREMENT_FIELD_VALUE);