blob: 2bbd09bade26002f338e57e794eedf3d8f0cf2aa [file] [log] [blame]
emacleece92f7b2023-06-27 10:45:52 +01001{
2 "$id": "urn:cps:org.onap.cps.ncmp.events:avc-subscription-event:1.0.0",
3 "$ref": "#/definitions/SubscriptionEvent",
4 "$schema": "https://json-schema.org/draft/2019-09/schema",
5 "definitions": {
6 "SubscriptionEvent": {
7 "description": "The payload for subscription event.",
8 "javaType": "org.onap.cps.ncmp.events.avcsubscription1_0_0.client_to_ncmp.SubscriptionEvent",
9 "properties": {
10 "data": {
11 "properties": {
12 "dataType": {
13 "description": "The datatype content.",
14 "properties": {
15 "dataCategory": {
16 "description": "The category type of the data",
17 "type": "string"
18 },
19 "dataProvider": {
20 "description": "The provider name of the data",
21 "type": "string"
22 },
23 "dataspace": {
24 "description": "The dataspace name",
25 "type": "string"
26 }
27 },
28 "required": [
29 "dataCategory",
30 "dataProvider",
31 "dataspace"
32 ],
33 "type": "object",
34 "additionalProperties": false
35 },
36 "predicates": {
37 "description": "Additional values to be added into the subscription",
38 "properties": {
39 "datastore": {
40 "description": "datastore which is to be used by the subscription",
41 "type": "string"
42 },
43 "targets": {
44 "description": "CM Handles to be targeted by the subscription",
45 "type": "array",
46 "items": {
47 "type": "string"
48 }
49 },
50 "datastore-xpath-filter": {
51 "description": "filter to be applied to the CM Handles through this event",
52 "type": "string"
53 }
54 },
55 "required": [
56 "datastore",
57 "targets",
58 "datastore-xpath-filter"
59 ],
60 "type": "object",
61 "additionalProperties": false
62 },
63 "subscription": {
64 "description": "The subscription details.",
65 "properties": {
66 "clientID": {
67 "description": "The clientID",
68 "type": "string"
69 },
70 "name": {
71 "description": "The name of the subscription",
72 "type": "string"
73 }
74 },
75 "required": [
76 "clientID",
77 "name"
78 ],
79 "type": "object",
80 "additionalProperties": false
81 }
82 },
83 "required": [
84 "dataType",
85 "predicates",
86 "subscription"
87 ],
88 "type": "object",
89 "additionalProperties": false
halil.cakal5de97882023-06-23 14:30:52 +010090 }
emacleece92f7b2023-06-27 10:45:52 +010091 },
92 "type": "object",
halil.cakal5de97882023-06-23 14:30:52 +010093 "additionalProperties": false,
94 "required": [
95 "data"
96 ]
emacleece92f7b2023-06-27 10:45:52 +010097 }
98 }
99}