Versions Compared

Key

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

Table of Contents

...

InterfaceNameTriggerDescriptionTypeEndpoint or TopicSchema
1HealthCheck30 second interval (configurable)NCMP is to perform a health check against each of the DMI PluginsREST

http://<dmiPluginServiceName>/manage/health

This endpoint will be the standard heath check endpoint provided by spring boot actuator. We don't store it anywhere. We just document it for now.


2CMHandle trust level changeA CMHandle managed by DMI Plugin's trust level has changed

data contains {trustLevel: ENUM} 

event id is cmhandle id in kafka header

Kafka

kafka topic:

dmi-device-heartbeat

<cloudEvents-header>

  id : <cmhandleId>

  type : org.onap.cm.events.trustlevel-notification

data : {
      trustlevel : "COMPLETE/NONE"
}

3CMHandle Query API with trustLevel Query ConditionClient Request

CmHandle is to be returned based on the values in above CMHandle Trust Map

REST
  1. http://<host>:<port>/ncmp/v1/ch/id-searches
  2. http://<host>:<port>/v1/ch/searches 

{
  "cmHandleQueryParameters": [
    {
        "conditionName""cmHandleWithTrustLevel",
        "conditionParameters": [ {"trustLevel""COMPLETE"} ]
    }
  ]
}

Managing TrustLevel

...

Proposal for Notification's Schema

12/10/2023 - awaiting for approval

(Reference CPS-1104 Agree LCM Event schemas

kafka-key : cmHandleId/deviceId

 Toine Siebelink Kolawole Adebisi-Adeolokun  

...

titleNCMP to Clients Notification (Proposed by Kieran)
collapsetrue

...

#attribute-nametypevalue
1idheaderrandom UUID
2sourceheaderncmp.<cmhandle-id>
3specversionheader"1.0"
4typeheader"trustLevelChangeEvent"
5dataschemaheader"org.onap.cps.ncmp.events.cmhandle.TrustLevelChangeEvent:1.0.0"
6correlationidext-header"<cmhandle-id>"
7datapayload

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": {}
        }
    }


...