emaclee | ce92f7b | 2023-06-27 10:45:52 +0100 | [diff] [blame] | 1 | { |
mpriyank | 2fe802a | 2023-08-08 15:27:18 +0100 | [diff] [blame] | 2 | "$id": "urn:cps:org.onap.cps.ncmp.events:cm-subscription-ncmp-in-event:1.0.0", |
| 3 | "$ref": "#/definitions/CmSubscriptionNcmpInEvent", |
emaclee | ce92f7b | 2023-06-27 10:45:52 +0100 | [diff] [blame] | 4 | "$schema": "https://json-schema.org/draft/2019-09/schema", |
| 5 | "definitions": { |
mpriyank | 2fe802a | 2023-08-08 15:27:18 +0100 | [diff] [blame] | 6 | "CmSubscriptionNcmpInEvent": { |
emaclee | ce92f7b | 2023-06-27 10:45:52 +0100 | [diff] [blame] | 7 | "description": "The payload for subscription event.", |
mpriyank | 2fe802a | 2023-08-08 15:27:18 +0100 | [diff] [blame] | 8 | "javaType": "org.onap.cps.ncmp.events.cmsubscription1_0_0.client_to_ncmp.CmSubscriptionNcmpInEvent", |
emaclee | ce92f7b | 2023-06-27 10:45:52 +0100 | [diff] [blame] | 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.cakal | 5de9788 | 2023-06-23 14:30:52 +0100 | [diff] [blame] | 90 | } |
emaclee | ce92f7b | 2023-06-27 10:45:52 +0100 | [diff] [blame] | 91 | }, |
| 92 | "type": "object", |
halil.cakal | 5de9788 | 2023-06-23 14:30:52 +0100 | [diff] [blame] | 93 | "additionalProperties": false, |
| 94 | "required": [ |
| 95 | "data" |
| 96 | ] |
emaclee | ce92f7b | 2023-06-27 10:45:52 +0100 | [diff] [blame] | 97 | } |
| 98 | } |
| 99 | } |