blob: 3c23cd03bf8320d64b9c2815a8272d5067cddadb [file] [log] [blame]
halil.cakal5de97882023-06-23 14:30:52 +01001{
2 "$schema": "https://json-schema.org/draft/2019-09/schema",
mpriyanka3e1ba12024-02-13 11:50:23 +00003 "$id": "urn:cps:org.onap.cps.ncmp.events:cm-notification-subscription-dmi-in-event-schema:1.0.0",
4 "$ref": "#/definitions/CmNotificationSubscriptionDmiInEvent",
halil.cakal5de97882023-06-23 14:30:52 +01005 "definitions": {
mpriyanka3e1ba12024-02-13 11:50:23 +00006 "CmNotificationSubscriptionDmiInEvent": {
7 "description": "The payload for cm notification subscription event incoming message from NCMP.",
emaclee183a22c2023-12-13 00:41:31 +00008 "type": "object",
mpriyanka3e1ba12024-02-13 11:50:23 +00009 "javaType": "org.onap.cps.ncmp.events.cmnotificationsubscription_merge1_0_0.ncmp_to_dmi.CmNotificationSubscriptionDmiInEvent",
emaclee183a22c2023-12-13 00:41:31 +000010 "additionalProperties": false,
halil.cakal5de97882023-06-23 14:30:52 +010011 "properties": {
12 "data": {
emaclee183a22c2023-12-13 00:41:31 +000013 "$ref": "#/definitions/data"
halil.cakal5de97882023-06-23 14:30:52 +010014 }
15 },
halil.cakal5de97882023-06-23 14:30:52 +010016 "required": [
17 "data"
18 ]
19 },
emaclee183a22c2023-12-13 00:41:31 +000020 "data": {
halil.cakal5de97882023-06-23 14:30:52 +010021 "type": "object",
emaclee183a22c2023-12-13 00:41:31 +000022 "description": "Information about the targets and subscription",
23 "additionalProperties": false,
halil.cakal5de97882023-06-23 14:30:52 +010024 "properties": {
mpriyankdaa92d72024-05-31 09:46:11 +010025 "cmHandles": {
emaclee183a22c2023-12-13 00:41:31 +000026 "type": "array",
27 "items": {
28 "type": "object",
29 "description": "Details for the target cmhandles",
30 "additionalProperties": false,
31 "properties": {
32 "cmhandleId": {
33 "type": "string"
34 },
mpriyankdaa92d72024-05-31 09:46:11 +010035 "privateProperties": {
emaclee183a22c2023-12-13 00:41:31 +000036 "type": "object",
37 "existingJavaType": "java.util.Map<String,String>",
38 "items": {
39 "type": "string"
40 }
41 }
42 }
43 }
halil.cakal5de97882023-06-23 14:30:52 +010044 },
emaclee183a22c2023-12-13 00:41:31 +000045 "predicates": {
46 "type": "array",
47 "description": "Additional values to be added into the subscription",
48 "items": {
49 "type": "object",
50 "properties": {
51 "targetFilter": {
52 "description": "CM Handles to be targeted by the subscription",
53 "type": "array",
54 "items": {
55 "type": "string"
56 }
57 },
58 "scopeFilter": {
59 "type": "object",
60 "properties": {
61 "datastore": {
62 "description": "Datastore which is to be used by the subscription",
63 "type": "string",
64 "enum": ["ncmp-datastore:passthrough-operational", "ncmp-datastore:passthrough-running"]
65 },
mpriyankdaa92d72024-05-31 09:46:11 +010066 "xpathFilter": {
emaclee183a22c2023-12-13 00:41:31 +000067 "description": "Filter to be applied to the CM Handles through this event",
68 "type": "array",
69 "items": {
70 "type": "string"
71 }
72 }
73 },
74 "additionalProperties": false,
75 "required": [
mpriyankdaa92d72024-05-31 09:46:11 +010076 "xpathFilter"
emaclee183a22c2023-12-13 00:41:31 +000077 ]
78 }
79 },
80 "additionalProperties": false,
81 "required": [
82 "targetFilter"
83 ]
84 },
85 "additionalProperties": false
halil.cakal5de97882023-06-23 14:30:52 +010086 }
87 },
88 "required": [
mpriyankdaa92d72024-05-31 09:46:11 +010089 "cmHandles",
emaclee183a22c2023-12-13 00:41:31 +000090 "predicates"
91 ]
halil.cakal5de97882023-06-23 14:30:52 +010092 }
93 }
94}