blob: f8b6c2e68045064e6165dafe6e230febe9e20c22 [file] [log] [blame]
mpriyank0b200f12024-07-24 14:10:48 +01001{
2 "$id": "urn:cps:org.onap.cps.ncmp.events:cm-notification-subscription-ncmp-in-event:1.0.0",
3 "$ref": "#/definitions/NcmpInEvent",
4 "$schema": "https://json-schema.org/draft/2019-09/schema",
5 "definitions": {
6 "NcmpInEvent": {
7 "description": "The payload for subscription merge event.",
8 "javaType": "org.onap.cps.ncmp.impl.cmnotificationsubscription_1_0_0.client_to_ncmp.NcmpInEvent",
9 "properties": {
10 "data": {
11 "properties": {
12 "subscriptionId": {
13 "description": "The subscription details.",
14 "type": "string"
15 },
16 "predicates": {
17 "type": "array",
18 "description": "Additional values to be added into the subscription",
19 "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 },
37 "xpathFilter": {
38 "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": [
47 "xpathFilter"
48 ]
49 }
50 },
51 "additionalProperties": false,
52 "required": [
53 "targetFilter"
54 ]
55 },
56 "additionalProperties": false
57 }
58 },
59 "required": [
60 "subscriptionId"
61 ],
62 "type": "object",
63 "additionalProperties": false
64 }
65 },
66 "type": "object",
67 "additionalProperties": false,
68 "required": [
69 "data"
70 ]
71 }
72 }
73}