Versions Compared

Key

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

...

Purpose : Generic field to store information about the state.


Current Schema

...


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 Schema


  1. Structured detail schema

    Code Block
    titleOption#1
    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”}     

    
           ],

    
         "detail": {

    
             "detailMessage" : "sample message about the event",

    
              "lastCmHandleState" : "ADVISED"

    
              }

    
        }

    
    }




  2.  No Detail object , just add the lastCmHandleState

    Code Block
    {
     
    titleOption#2
    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”,

    
         "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”}     

    
           ]

    
        }

    
    }





    3. Introduce a Map which can take in any detail in the future ( just like cmhandle-properties)

    Code Block
    titleOption#3
    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”}     

    
           ],

       “detail” : [
              {“lastCmHandleState” : “ADVISED”},
              {“sampleMessage” : “some message”}     
           ]
        }
    
    
       “detail” : [
              {“lastCmHandleState” : “ADVISED”},
              {“sampleMessage” : “some message”}     
           ]
        }
    }