blob: f8b6c2e68045064e6165dafe6e230febe9e20c22 [file] [log] [blame]
emacleece92f7b2023-06-27 10:45:52 +01001{
mpriyanka3e1ba12024-02-13 11:50:23 +00002 "$id": "urn:cps:org.onap.cps.ncmp.events:cm-notification-subscription-ncmp-in-event:1.0.0",
mpriyankbac230b2024-07-01 12:32:27 +01003 "$ref": "#/definitions/NcmpInEvent",
emacleece92f7b2023-06-27 10:45:52 +01004 "$schema": "https://json-schema.org/draft/2019-09/schema",
5 "definitions": {
mpriyankbac230b2024-07-01 12:32:27 +01006 "NcmpInEvent": {
emaclee183a22c2023-12-13 00:41:31 +00007 "description": "The payload for subscription merge event.",
mpriyankbac230b2024-07-01 12:32:27 +01008 "javaType": "org.onap.cps.ncmp.impl.cmnotificationsubscription_1_0_0.client_to_ncmp.NcmpInEvent",
emacleece92f7b2023-06-27 10:45:52 +01009 "properties": {
10 "data": {
11 "properties": {
emaclee183a22c2023-12-13 00:41:31 +000012 "subscriptionId": {
13 "description": "The subscription details.",
14 "type": "string"
emacleece92f7b2023-06-27 10:45:52 +010015 },
16 "predicates": {
emaclee183a22c2023-12-13 00:41:31 +000017 "type": "array",
emacleece92f7b2023-06-27 10:45:52 +010018 "description": "Additional values to be added into the subscription",
emaclee183a22c2023-12-13 00:41:31 +000019 "items": {
20 "type": "object",
21 "properties": {
22 "targetFilter": {
23 "description": "CM Handles to be targeted by the subscription",
24 "type": "array",
25 "items": {
26 "type": "string"
27 }
28 },
29 "scopeFilter": {
30 "type": "object",
31 "properties": {
32 "datastore": {
33 "description": "Datastore which is to be used by the subscription",
34 "type": "string",
35 "enum": ["ncmp-datastore:passthrough-operational", "ncmp-datastore:passthrough-running"]
36 },
mpriyankdaa92d72024-05-31 09:46:11 +010037 "xpathFilter": {
emaclee183a22c2023-12-13 00:41:31 +000038 "description": "Filter to be applied to the CM Handles through this event",
39 "type": "array",
40 "items": {
41 "type": "string"
42 }
43 }
44 },
45 "additionalProperties": false,
46 "required": [
mpriyankdaa92d72024-05-31 09:46:11 +010047 "xpathFilter"
emaclee183a22c2023-12-13 00:41:31 +000048 ]
emacleece92f7b2023-06-27 10:45:52 +010049 }
50 },
emaclee183a22c2023-12-13 00:41:31 +000051 "additionalProperties": false,
52 "required": [
53 "targetFilter"
54 ]
emacleece92f7b2023-06-27 10:45:52 +010055 },
emacleece92f7b2023-06-27 10:45:52 +010056 "additionalProperties": false
57 }
58 },
59 "required": [
mpriyank7b36e2c2024-06-06 11:47:46 +010060 "subscriptionId"
emacleece92f7b2023-06-27 10:45:52 +010061 ],
62 "type": "object",
63 "additionalProperties": false
halil.cakal5de97882023-06-23 14:30:52 +010064 }
emacleece92f7b2023-06-27 10:45:52 +010065 },
66 "type": "object",
halil.cakal5de97882023-06-23 14:30:52 +010067 "additionalProperties": false,
68 "required": [
69 "data"
70 ]
emacleece92f7b2023-06-27 10:45:52 +010071 }
72 }
73}