New schema for creation/deletion datajob subscription event 02/141602/1
authoremaclee <lee.anjella.macabuhay@est.tech>
Wed, 30 Jul 2025 09:24:23 +0000 (10:24 +0100)
committeremaclee <lee.anjella.macabuhay@est.tech>
Wed, 30 Jul 2025 09:35:24 +0000 (10:35 +0100)
- 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 <lee.anjella.macabuhay@est.tech>
cps-ncmp-events/src/main/resources/schemas/ncmp/cmnotificationsubscription/data-job-subscription-operation-in-event-schema-1.0.0.json [new file with mode: 0644]

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 (file)
index 0000000..6916cd6
--- /dev/null
@@ -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