CM Handle Lifecycle Management (LCM) Events
Introduction
LCM events for CM Handles are published when a CM Handle is created, deleted or another change in the cm handle state occurs.
3 possible event types:
Create
Update
Delete
CM Handle LCM Event Schema
The current published LCM event is based on the following schema:
CM Handle LCM Event structure
Events header
Event header prototype for all event types
{
"eventId" : "00001",
"eventCorrelationId : "cmhandle-001",
"eventTime" : "2021-11-16T16:42:25-04:00",
"eventSource" : "org.onap.ncmp",
"eventType" : "org.onap.ncmp.cmhandle-lcm-event.create",
"eventSchema" : "org.onap.ncmp:cmhandle-lcm-event",
"eventSchemaVersion" : "1.0",
"event" : ...
}
Events payload
Event payload varies based on the type of event.
CREATE
Event payload for this event contains the properties of the new cm handle created.
Create event payload prototype
"event": {
"cmHandleId" : "cmhandle-001",
"newValues" : {
"cmHandleState" : "ADVISED",
"dataSyncEnabled" : "TRUE",
"cmhandleProperties" : [
"prop1" : "val1",
"prop2" : "val2"
]
}
}
}
UPDATE
Event payload for this event contains the difference in state and properties of the cm handle.
Update event payload prototype
"event": {
"cmHandleId" : "cmhandle-001",
"oldValues" : {
"cmHandleState" : "ADVISED",
"dataSyncEnabled" : "FALSE",
"cmhandleProperties" : [
"prop1" : "val1",
"prop2" : "val2",
}
"newValues" : {
"cmHandleState" : "READY",
"dataSyncEnabled" : "TRUE",
"cmhandleProperties" : [
"prop1" : "updatedval1",
"prop2" : "updatedval2"
]
}
}
}
DELETE
Event payload for this event contains the identifier of the deleted cm handle.
Delete event payload prototype
"event": {
"cmHandleId" : "cmhandle-001",
}