Handle high frequency (faster then DMI) of passthrough request in NCMP
[cps.git] / cps-ncmp-events / src / main / resources / schemas / dmi-async-request-response-event-schema-v1.json
1 {
2   "$schema": "https://json-schema.org/draft/2019-09/schema",
3   "$id": "urn:cps:org.onap.cps.ncmp.events:dmi-async-request-response-event-schema:v1",
4   "$ref": "#/definitions/DmiAsyncRequestResponseEvent",
5   "definitions": {
6     "DmiAsyncRequestResponseEvent": {
7       "description": "The payload for NCMP async request response event.",
8       "type": "object",
9       "properties": {
10         "eventId": {
11           "description": "The unique id identifying the event generated by DMI.",
12           "type": "string"
13         },
14         "eventCorrelationId": {
15           "description": "The request id passed by NCMP.",
16           "type": "string"
17         },
18         "eventTime": {
19           "description": "The time of the event. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'.",
20           "type": "string"
21         },
22         "eventTarget": {
23           "description": "The target of the event.",
24           "type": "string"
25         },
26         "eventType": {
27           "description": "The type of the event.",
28           "type": "string"
29         },
30         "eventSchema": {
31           "description": "The event schema for async request response events.",
32           "type": "string"
33         },
34         "eventSchemaVersion": {
35           "description": "The event schema version for async request response events.",
36           "type": "string"
37         },
38         "eventSource": {
39           "description": "The source of the event.",
40           "type": "string"
41         },
42         "eventContent": {
43           "$ref": "#/definitions/Event-Content"
44         }
45       },
46       "required": [
47         "eventId",
48         "eventCorrelationId",
49         "eventTime",
50         "eventTarget",
51         "eventType",
52         "eventSchema",
53         "eventSchemaVersion",
54         "eventSource",
55         "eventContent"
56       ]
57     },
58     "Event-Content": {
59       "description": "The event content.",
60       "type": "object",
61       "properties": {
62         "response-data-schema": {
63           "description": "The schema of response data",
64           "type": "string"
65         },
66         "response-status": {
67           "description": "The status of the response.",
68           "type": "string"
69         },
70         "response-code": {
71           "description": "The code of the response.",
72           "type": "string"
73         },
74         "response-data": {
75           "description": "The data payload",
76           "type": "object",
77           "properties": {
78             "payload": {
79               "type": "object"
80             }
81           }
82         },
83         "required": [
84           "response-data-schema",
85           "response-status",
86           "response-code",
87           "response-data"
88         ]
89       }
90     }
91   }
92 }