Table of Contents |
---|
...
# | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
1 | id | UUID of the event | |||||||||
2 | source | urn:cps:org.onap.cps | |||||||||
3 | schema | urn:cps:org.onap.cps:data-updated-event-schema:v1 | |||||||||
4 | type | org.onap.cps.data-updated-delta-event | |||||||||
5 | content | { "operation": "UPDATE",
} |
...
Delta notification can be enabled/disabled by an additional admin API for a given anchor name. New API will be added as below.
API : PUT https://localhostIP:8333PORT/cps/api/v2/dataspace/<dataspace-name>/deltanotification
Request body:
[
{
"anchorName": "anchor01",
"subscribeDeltaNotification": true
},
{
"anchorName": "anchor02",
"subscribeDeltaNotification": true
}
]
Additional table to persist delta notification
Table Name: AnchorForDeltaNotification
Field | type |
---|---|
ANCHORID | Integer |
Implementation details
- For data nodes update operation, generate delta report by comparing previous and current configuration after successful update.
- Process data update delta event and send notification as described in event schema above.