Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

References

  • Jira Legacy
    serverONAP System Jira
    columnIdsissuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution
    columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
    serverId425b2b0a4733707d-557c2057-3c0c3a0f-b515ae5e-579789cceedb4fd8aff50176
    keyCPS-1104
  • CPS-858 Define Notifications on CM Handle Add (Ready) & Delete

...

Code Block
titleCurrent NcmpSchema
collapsetrue
{
  "eventId"                  : "00001",    
  "eventCorrelationId  : "cmhandle-001",       
  "eventTime"              : "2021-11-16T16:42:25-04:00",
  "eventSource"           : "org.onap.ncmp",                                 
  "eventType"              : "org.onap.ncmp.cmhandle-lcm-event",   
  ”eventSchema”         : “org.onap.ncmp:cmhandle-lcm-event:v1",   

  "event": {
     “cmhandle-state”     : “READY”,

      "cmHandleId" : "cmhandle-001",
      “cmhandle-properties” : [
          {“public-property-name-1” : “public-property-value-1”},
          {“public-property-name-2” : “public-property-value-2”}     
       ]
    }
}

Proposed

...

events

Code Block
titleOption #1 Structured DetailsCreate Event
collapsetrue
{
   "eventId"                                : "00001",        
   "eventCorrelationId eventCorrelationId     : "cmhandle-001",       
       
  "eventTime"                          : "2021-11-16T16:42:25-04:00",
   "eventSource"                      : "org.onap.ncmp",                                 
                                 
  "eventType"                          : "org.onap.ncmp.cmhandle-lcm-event.create",   
  ”eventSchema”            
  ”eventSchema”           : “org.onap.ncmp:cmhandle-lcm-event:v1",     

   "event": {
     “cmhandle-state”     : “READY”,

      "cmHandleId" : "cmhandle-001",
     “cmhandle-properties” : [
          {“public-property-name-1” : “public-property-value-1”},
          {“public-property-name-2” : “public-property-value-2”}     
       ],
     "detail": {
         "detailMessage" : "sample message about the event",
          "lastCmHandleState" : "ADVISED"
          }
             “cmhandleId” : “cmhandle-id-001”,
         "newValues" : { # include ALL cmhandle metadata attribute values
             “cmhandle-state”  : “READY”, 
             “dataSyncEnabled” : “TRUE”,  
             ...
           }   
    }
}


Option #3 'Details' consist of a property map
Code Block
titleOption #2  Only add 'lastCmHandleState'Update Event
collapsetrue
{{
   "eventId"                                 : "00001",        
   "eventCorrelationId eventCorrelationId      : "cmhandle-001",       
       
  "eventTime"                           : "2021-11-16T16:42:25-04:00",
   "eventSource"                       : "org.onap.ncmp",                                 
                                  
  "eventType"                           : "org.onap.ncmp.cmhandle-lcm-event.update",   
  ”eventSchema”            
  ”eventSchema”            : “org.onap.ncmp:cmhandle-lcm-event:v1",   
  
   "event": {
     “cmhandle-state”     : “READY”,
     "last-cmhandle-state" : "ADVISED",

      "cmHandleId" : "cmhandle-001",
     “cmhandle-properties” : [
          {“public-property-name-1” : “public-property-value-1”},
          {“public-property-name-2” : “public-property-value-2”}     
       ]
    }
}
Code Block
title

         “cmhandleId” : “cmhandle-id-001”
         "oldValues" : {
                 “dataSyncEnabled” : “FALSE”, 
                 “cmHandleDescription”   : “Some description”
                  “cmhandleProperties” : [
                          “someProperty-0” : “ This property will be updated”,
                          “someProperty-1” : “ This property will be deleted”,
              }
          "newValues" : {
             “dataSyncEnabled” : “TRUE”,  
                  “cmhandleProperties” : [
                          “someProperty-0” : “ This property has been updated”,
                          “someProperty-2” : “ This property is newly added to the cmhandle”
                   ]
           }   
       ]
    }
}


Code Block
titleDelete Event
collapsetrue
{
  "eventId"                  : "00001",    
  "eventCorrelationId      : "cmhandle-001",       
  "eventTime"              : "2021-11-16T16:42:25-04:00",
  "eventSource"            : "org.onap.ncmp",                                 
  "eventType"              : "org.onap.ncmp.cmhandle-lcm-event",   
  ”eventSchema”            : “org.onap.ncmp:cmhandle-lcm-event:v1",   

  "event": {
     “cmhandle-state”     : “READY”,        "cmHandleId"“cmhandleId” : "cmhandle-001",
     “cmhandle-properties” : [
          {“public-property-name-1” : “public-property-value-1”},
          {“public-property-name-2” : “public-property-value-2”}     
       ],“cmhandle-id-001”     “detail”
: [
          {“lastCmHandleState” : “ADVISED”},
          {“sampleMessage” : “some message”}     
       ]
    }
}