diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2022-06-02 09:05:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-06-02 09:05:44 +0000 |
commit | 240fbe95dde33a2a06618579a93c247e9bb56c5e (patch) | |
tree | 55d2ba0c41f9bb259bc5d3fa097251f630cf328f /cps-ncmp-events/src/main/resources/schemas/ncmp-event-schema-v1.json | |
parent | 7bb1a57b47646115c6a33ff9e3b53e3fb0949ea9 (diff) | |
parent | e9d2f4fa53927711d9fb058ebf815d8db2d551cc (diff) |
Merge "NcmpEvent creation for ModuleSync"
Diffstat (limited to 'cps-ncmp-events/src/main/resources/schemas/ncmp-event-schema-v1.json')
-rw-r--r-- | cps-ncmp-events/src/main/resources/schemas/ncmp-event-schema-v1.json | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/cps-ncmp-events/src/main/resources/schemas/ncmp-event-schema-v1.json b/cps-ncmp-events/src/main/resources/schemas/ncmp-event-schema-v1.json new file mode 100644 index 0000000000..84fc12edbd --- /dev/null +++ b/cps-ncmp-events/src/main/resources/schemas/ncmp-event-schema-v1.json @@ -0,0 +1,87 @@ +{ + + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "urn:cps:org.onap.ncmp.cmhandle.lcm-event:v1", + + "$ref": "#/definitions/NcmpEvent", + + "definitions": { + + "NcmpEvent": { + "description": "The payload for NCMP event.", + "type": "object", + "javaType" : "org.onap.ncmp.cmhandle.lcm.event.NcmpEvent", + "properties": { + "eventId": { + "description": "The unique id identifying the event for the specified source.", + "type": "string" + }, + "eventCorrelationId": { + "description": "The id identifying the event for the specified source.", + "type": "string" + }, + "eventTime": { + "description": "The timestamp when the data has been observed.", + "type": "string" + }, + "eventSource": { + "description": "The source of the event.", + "type": "string", + "format": "uri" + }, + "eventType": { + "description": "The type of the event.", + "type": "string" + }, + "eventSchema": { + "description": "The schema, including its version, that this event adheres to.", + "type": "string", + "format": "uri" + }, + "event": { + "$ref": "#/definitions/Event" + } + }, + "required": [ + "eventId", + "eventTime", + "eventSource", + "eventType", + "eventSchema", + "event" + ], + "additionalProperties": false + }, + + "Event": { + "description": "The Payload of an event.", + "type": "object", + "properties": { + "cmHandleId": { + "description": "cmHandle id", + "type": "string" + }, + "operation": { + "description": "The name of the Operation that triggered this event.", + "type": "string", + "enum": ["CREATE", "UPDATE", "DELETE"] + }, + "cmhandle-state": { + "description": "State of cmHandle.", + "type": "string", + "enum": ["ADVISED", "READY", "LOCKED"] + }, + "cmhandle-properties": { + "description": "cmHandle properties as json object.", + "type": "object", + "existingJavaType": "java.util.List<java.util.Map<String,String>>", + "additionalProperties": false + } + }, + "required": [ + "operation" + ], + "additionalProperties": false + } + } +} |