Versions Compared

Key

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

...

kafka-key : cmHandleId/deviceId

Code Block
languagetext
titleNCMP to Clients Notifications on Trust Level Changes
linenumberstrue
collapsetrue
id : "random UUID"
source : "NCMP"
specversion	: "1.0"
type : "deviceTrustLevelNotification"
dataschema : "org.onap.cps.ncmp.events.trustlevel.DeviceTrustLevelNotification:1.0.0"
correlationid : "deviceId+trustLevel"
"data": {
	"deviceId": "CmHandle1",  // or we can call it cmHandleId as well [mandatory]
	"oldValues": {  // optional
			"trustLevel" : "NONE"
				},
	"newValues" : { // optional
			"trustLevel" : "COMPLETE"
		}
}

 Toine Siebelink Kolawole Adebisi-Adeolokun  

Code Block
titleNCMP to Clients Notification (Proposed by Kieran)
collapsetrue
id : "random UUID"
source : "ncmp.<cmhandleId>"   # //  adding cmhandle to be a little more specific on the origin of the change event.  If the event was triggered by DMI plugin then use the “source” supplied from that even if available.  If not available then set as <dmi-plugin-name>.<cmhandleId>
specversion : "1.0"
type : "trustLevelChangeEvent"
dataschema : "org.onap.cps.ncmp.events.cmhandle.TrustLevelChangeEvent:1.0.0"
correlationid : "<cmhandleId>
"data": {
   "attributeValueChange": [  # Mandatory
        { 
         "attributeName"     : " trustLevel",
         "oldAttributeValue" : "NONE",
         "newAttributeValue" : "COMPLETE"
        }
    ]
}


#attribute-nametypevalue

idheaderrandom UUID

sourceheaderncmp.<cmhandle-id>

specversionheader"1.0"

typeheader"trustLevelChangeEvent"

dataschemaheader"org.onap.cps.ncmp.events.cmhandle.TrustLevelChangeEvent:1.0.0"

correlationidext-header"<cmhandle-id>"

datapayload

Compliant with the below.

Code Block
titleattributeValueChange
collapsetrue
"attributeValueChange": {
         "type": "array",
            "items": {
              "$ref": "#/definitions/attributeValueChange-Type"
            }
        },
"attributeValueChange-Type": {
      "type": "object",
        "properties": {
          "attributeName": {
            "type": "string"
          },
          "oldAttributeValue": {},
          "newAttributeValue": {}
        }
    }