aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/aai/datarouter/policy/ServiceIntegrityValidationPolicy.java2
-rw-r--r--src/main/resources/auditservice_validation_schema.json2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/onap/aai/datarouter/policy/ServiceIntegrityValidationPolicy.java b/src/main/java/org/onap/aai/datarouter/policy/ServiceIntegrityValidationPolicy.java
index abdfebb..8960c99 100644
--- a/src/main/java/org/onap/aai/datarouter/policy/ServiceIntegrityValidationPolicy.java
+++ b/src/main/java/org/onap/aai/datarouter/policy/ServiceIntegrityValidationPolicy.java
@@ -165,6 +165,8 @@ public class ServiceIntegrityValidationPolicy {
formattedValidation.addProperty("modelVersionId", validation.get("entity").getAsJsonObject().get("poa-event").getAsJsonObject().get("modelVersionId").getAsString());
formattedValidation.addProperty("modelInvariantId", validation.get("entity").getAsJsonObject().get("poa-event").getAsJsonObject().get("modelInvariantId").getAsString());
formattedValidation.addProperty("serviceInstanceId",validation.get("entity").getAsJsonObject().get("poa-event").getAsJsonObject().get("serviceInstanceId").getAsString());
+ formattedValidation.addProperty("requestId",validation.get("entity").getAsJsonObject().get("poa-event").getAsJsonObject().get("xTransactionId").getAsString());
+ formattedValidation.addProperty("client",validation.get("entity").getAsJsonObject().get("poa-event").getAsJsonObject().get("xFromAppId").getAsString());
try {
formattedValidation.addProperty("modelName", validation.get("entity").getAsJsonObject().get("context-list").getAsJsonObject().get("sdc").getAsJsonObject().get("service").getAsJsonObject().get("name").getAsString());
diff --git a/src/main/resources/auditservice_validation_schema.json b/src/main/resources/auditservice_validation_schema.json
index 70d6845..6267a8c 100644
--- a/src/main/resources/auditservice_validation_schema.json
+++ b/src/main/resources/auditservice_validation_schema.json
@@ -5,6 +5,8 @@
{"name": "modelVersionId", "data-type": "string"},
{"name": "modelInvariantId", "data-type": "string"},
{"name": "serviceInstanceId", "data-type": "string"},
+ {"name": "requestId", "data-type": "string"},
+ {"name": "client", "data-type": "string"},
{"name": "result", "data-type": "string"},
{"name": "violations", "data-type": "nested", "sub-fields": [
{"name": "violationId", "data-type": "string", "searchable": "false"},