halil.cakal | 5de9788 | 2023-06-23 14:30:52 +0100 | [diff] [blame] | 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2019-09/schema", |
mpriyank | a3e1ba1 | 2024-02-13 11:50:23 +0000 | [diff] [blame] | 3 | "$id": "urn:cps:org.onap.cps.ncmp.events:cm-notification-subscription-dmi-in-event-schema:1.0.0", |
| 4 | "$ref": "#/definitions/CmNotificationSubscriptionDmiInEvent", |
halil.cakal | 5de9788 | 2023-06-23 14:30:52 +0100 | [diff] [blame] | 5 | "definitions": { |
mpriyank | a3e1ba1 | 2024-02-13 11:50:23 +0000 | [diff] [blame] | 6 | "CmNotificationSubscriptionDmiInEvent": { |
| 7 | "description": "The payload for cm notification subscription event incoming message from NCMP.", |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 8 | "type": "object", |
mpriyank | a3e1ba1 | 2024-02-13 11:50:23 +0000 | [diff] [blame] | 9 | "javaType": "org.onap.cps.ncmp.events.cmnotificationsubscription_merge1_0_0.ncmp_to_dmi.CmNotificationSubscriptionDmiInEvent", |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 10 | "additionalProperties": false, |
halil.cakal | 5de9788 | 2023-06-23 14:30:52 +0100 | [diff] [blame] | 11 | "properties": { |
| 12 | "data": { |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 13 | "$ref": "#/definitions/data" |
halil.cakal | 5de9788 | 2023-06-23 14:30:52 +0100 | [diff] [blame] | 14 | } |
| 15 | }, |
halil.cakal | 5de9788 | 2023-06-23 14:30:52 +0100 | [diff] [blame] | 16 | "required": [ |
| 17 | "data" |
| 18 | ] |
| 19 | }, |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 20 | "data": { |
halil.cakal | 5de9788 | 2023-06-23 14:30:52 +0100 | [diff] [blame] | 21 | "type": "object", |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 22 | "description": "Information about the targets and subscription", |
| 23 | "additionalProperties": false, |
halil.cakal | 5de9788 | 2023-06-23 14:30:52 +0100 | [diff] [blame] | 24 | "properties": { |
mpriyank | daa92d7 | 2024-05-31 09:46:11 +0100 | [diff] [blame^] | 25 | "cmHandles": { |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 26 | "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 | }, |
mpriyank | daa92d7 | 2024-05-31 09:46:11 +0100 | [diff] [blame^] | 35 | "privateProperties": { |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 36 | "type": "object", |
| 37 | "existingJavaType": "java.util.Map<String,String>", |
| 38 | "items": { |
| 39 | "type": "string" |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 | } |
halil.cakal | 5de9788 | 2023-06-23 14:30:52 +0100 | [diff] [blame] | 44 | }, |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 45 | "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 | }, |
mpriyank | daa92d7 | 2024-05-31 09:46:11 +0100 | [diff] [blame^] | 66 | "xpathFilter": { |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 67 | "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": [ |
mpriyank | daa92d7 | 2024-05-31 09:46:11 +0100 | [diff] [blame^] | 76 | "xpathFilter" |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 77 | ] |
| 78 | } |
| 79 | }, |
| 80 | "additionalProperties": false, |
| 81 | "required": [ |
| 82 | "targetFilter" |
| 83 | ] |
| 84 | }, |
| 85 | "additionalProperties": false |
halil.cakal | 5de9788 | 2023-06-23 14:30:52 +0100 | [diff] [blame] | 86 | } |
| 87 | }, |
| 88 | "required": [ |
mpriyank | daa92d7 | 2024-05-31 09:46:11 +0100 | [diff] [blame^] | 89 | "cmHandles", |
emaclee | 183a22c | 2023-12-13 00:41:31 +0000 | [diff] [blame] | 90 | "predicates" |
| 91 | ] |
halil.cakal | 5de9788 | 2023-06-23 14:30:52 +0100 | [diff] [blame] | 92 | } |
| 93 | } |
| 94 | } |