1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. Copyright (C) 2022 Nordix Foundation
5 .. DO NOT CHANGE THIS LABEL FOR RELEASE NOTES - EVEN THOUGH IT GIVES A WARNING
14 Cps core events yet to be written
20 Lifecycle Management (LCM) Event
21 ================================
26 Lifecycle management events are published as cm handle state transitions from one state to another.
29 LCM events and state handler
30 ----------------------------
31 The LCM events are triggered under the state handler which has the following responsibilities:
33 #. Updating and persisting cm handle state based on the target state of the cm handle
35 #. Create and calls to publish the LCM event based on the cm handle state transition that occured
37 **3 possible event types:**
47 The current published LCM event is based on the following schema:
49 :download:`Life cycle management event schema <schemas/lcm-event-schema-v1.json>`
56 *Event header prototype for all event types*
62 "eventCorrelationId : "cmhandle-001",
63 "eventTime" : "2021-11-16T16:42:25-04:00",
64 "eventSource" : "org.onap.ncmp",
65 "eventType" : "org.onap.ncmp.cmhandle-lcm-event.create",
66 "eventSchema" : "org.onap.ncmp:cmhandle-lcm-event",
67 "eventSchemaVersion" : "1.0"
73 Event payload varies based on the type of event.
77 Event payload for this event contains the properties of the new cm handle created.
79 *Create event payload prototype*
84 "cmHandleId" : "cmhandle-001",
86 "cmHandleState" : "ADVISED",
87 "dataSyncEnabled" : "TRUE",
88 "cmhandleProperties" : [
99 Event payload for this event contains the difference in state and properties of the cm handle.
101 *Update event payload prototype*
106 "cmHandleId" : "cmhandle-001",
108 "cmHandleState" : "ADVISED",
109 "dataSyncEnabled" : "FALSE",
110 "cmhandleProperties" : [
115 "cmHandleState" : "READY",
116 "dataSyncEnabled" : "TRUE",
117 "cmhandleProperties" : [
118 "prop1" : "updatedval1",
119 "prop2" : "updatedval2"
128 Event payload for this event contains the identifier of the deleted cm handle.
130 *Delete event payload prototype*
135 "cmHandleId" : "cmhandle-001",