From a01fcf405827c09c8e84c4913b51ab5cf5f4412b Mon Sep 17 00:00:00 2001 From: emaclee Date: Wed, 30 Jul 2025 10:24:23 +0100 Subject: [PATCH] New schema for creation/deletion datajob subscription event - schema is based on analysis and proposal in https://lf-onap.atlassian.net/wiki/spaces/DW/pages/87984624/CPS-2166+Forwarding+CM+Data+Notification+to+Topic+Defined+in+Subscription#Comparison-Subscription-Legacy-Create-Event-and-R1-DataJob-Event Issue-ID: CPS-2713 Change-Id: I8b9b674720b4b8fdf8cd2153f46e47a8d587e7a8 Signed-off-by: emaclee --- ...bscription-operation-in-event-schema-1.0.0.json | 71 ++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 cps-ncmp-events/src/main/resources/schemas/ncmp/cmnotificationsubscription/data-job-subscription-operation-in-event-schema-1.0.0.json diff --git a/cps-ncmp-events/src/main/resources/schemas/ncmp/cmnotificationsubscription/data-job-subscription-operation-in-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/ncmp/cmnotificationsubscription/data-job-subscription-operation-in-event-schema-1.0.0.json new file mode 100644 index 0000000000..6916cd62eb --- /dev/null +++ b/cps-ncmp-events/src/main/resources/schemas/ncmp/cmnotificationsubscription/data-job-subscription-operation-in-event-schema-1.0.0.json @@ -0,0 +1,71 @@ + +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Data job subscription operation event format", + "type": "object", + "javaType": "org.onap.cps.ncmp.impl.cmnotificationsubscription_1_0_0.DataJobSubscriptionOperationInEvent", + "properties": { + "eventType": { + "description": "the type of the event", + "type": "string" + }, + "event": { + "description": "the root level of the common event format", + "type": "object", + "properties": { + "dataJob": { + "type": "object", + "properties": { + "id": { + "description": "The subscription data job identifier.", + "type": "string" + }, + "productionJobDefinition": { + "description": "Additional values to be added into the subscription.", + "type": "object", + "properties": { + "targetSelector": { + "description": "An object that contains the data node selectors.", + "type": "object", + "properties": { + "dataNodeSelector": { + "description": "A string that contains one or multiple data node selector in JEX format.", + "type": "string" + } + } + }, + "dataSelector": { + "description": "An object that contains the the notification types and notification filter.", + "type": "object", + "properties": { + "notificationTypes": { + "description": "A string array of notification types.", + "type": "array", + "items": { + "type": "string" + } + }, + "notificationFilter": { + "description": "A string that contains one or multiple notification filter in JEX format", + "type": "string" + } + } + } + } + } + } + }, + "dataType": { + "description": "The data type of the data job subscription.", + "type": "object", + "properties": { + "dataTypeId": { + "description": "The data type identifier", + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file -- 2.16.6