blob: 8685034dcdb574bb6de71d35d1d4d1cd2931995f [file] [log] [blame]
{
"$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"
},
"eventType": {
"description": "The type of the event.",
"type": "string"
},
"eventSchema": {
"description": "The schema, including its version, that this event adheres to.",
"type": "string"
},
"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"
},
"cmhandle-state": {
"description": "State of cmHandle.",
"type": "string",
"enum": ["ADVISED", "READY", "LOCKED", "DELETING", "DELETED"]
},
"cmhandle-properties": {
"description": "cmHandle properties as json object.",
"type": "object",
"default": null,
"existingJavaType": "java.util.List<java.util.Map<String,String>>",
"additionalProperties": false
}
},
"required": [
"operation"
],
"additionalProperties": false
}
}
}