diff options
author | Steven Blimkie <Steven.Blimkie@amdocs.com> | 2018-09-10 14:12:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-09-10 14:12:29 +0000 |
commit | b04debde97f26ab8dd6eec12c35312b1a4bba27b (patch) | |
tree | 75ab480cbf7ef4bd8cd556a16c5d2d265afbe86c | |
parent | 58de904df654e2fd39e9d6dc316baff98101ddc0 (diff) | |
parent | 406cd3212db281c562a16ea90957660e54fcafbc (diff) |
Merge "Add additional fields validation report"
-rw-r--r-- | src/main/java/org/onap/aai/datarouter/policy/ServiceIntegrityValidationPolicy.java | 2 | ||||
-rw-r--r-- | src/main/resources/auditservice_validation_schema.json | 2 |
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"},
|