blob: 97c0fbee22d6fcf3963fba3387645876c4d42fab [file] [log] [blame]
bmiklos97c875c2022-07-12 17:03:34 +02001{
2
3 "$schema": "https://json-schema.org/draft/2019-09/schema",
4 "$id": "urn:cps:org.onap.ncmp.cmhandle.lcm-event:v1",
5
6 "$ref": "#/definitions/LcmEvent",
7
8 "definitions": {
9
10 "Values": {
11 "description": "Values that represents the state of a cmHandle",
12 "type": "object",
13 "properties": {
14 "dataSyncEnabled":{
15 "description": "Whether data sync enabled",
16 "type": "boolean"
17 },
18 "cmHandleState": {
19 "description": "State of cmHandle",
20 "type": "string",
21 "enum": ["ADVISED", "READY", "LOCKED", "DELETING", "DELETED"]
22 },
23 "cmHandleProperties": {
24 "description": "cmHandle properties",
25 "type": "object",
26 "default": null,
27 "existingJavaType": "java.util.List<java.util.Map<String,String>>",
28 "additionalProperties": false
29 }
30 },
31 "additionalProperties": false
32 },
33
34 "Event": {
35 "description": "The Payload of an event",
36 "type": "object",
37 "properties": {
38 "cmHandleId": {
39 "description": "cmHandle id",
40 "type": "string"
41 },
42 "oldValues": {
43 "$ref": "#/definitions/Values"
44 },
45 "newValues": {
46 "$ref": "#/definitions/Values"
47 }
48 },
49 "required": [
50 "cmHandleId"
51 ],
52 "additionalProperties": false
53 },
54
55 "LcmEvent": {
56 "description": "The payload for LCM event",
57 "type": "object",
58 "javaType" : "org.onap.ncmp.cmhandle.event.lcm.LcmEvent",
59 "properties": {
60 "eventId": {
61 "description": "The unique id identifying the event",
62 "type": "string"
63 },
64 "eventCorrelationId": {
65 "description": "The id identifying the event",
66 "type": "string"
67 },
68 "eventTime": {
69 "description": "The timestamp when original event occurred",
70 "type": "string"
71 },
72 "eventSource": {
73 "description": "The source of the event",
74 "type": "string"
75 },
76 "eventType": {
77 "description": "The type of the event",
78 "type": "string"
79 },
80 "eventSchema": {
81 "description": "The schema that this event adheres to",
82 "type": "string"
83 },
84 "eventSchemaVersion": {
85 "description": "The version of the schema that this event adheres to",
86 "type": "string"
87 },
88 "event": {
89 "$ref": "#/definitions/Event"
90 }
91 },
92 "required": [
93 "eventId",
94 "eventCorrelationId",
95 "eventTime",
96 "eventSource",
97 "eventType",
98 "eventSchema",
99 "eventSchemaVersion",
100 "event"
101 ],
102 "additionalProperties": false
103 }
104
105 }
106}