Objective
...
Issues & Decisions
# | Issue | Notes | Decision |
---|
1 | Do we need to update existing update notification to send delta notification or delta notification along with existing notification. |
|
|
|
|
|
|
Event Schema
For delta notification we can use the existing cps data update event schema (cps-data-update-event-schema.json).
# |
|
|
---|
1 | id | UUID of the event |
2 | source | urn:cps:org.onap.cps |
| schema | urn:cps:org.onap.cps:data-updated-event-schema:v1 |
| type | org.onap.cps.data-updated-delta-event |
| content | {"operation": "UPDATE", "anchorName": "Anchor1", "dataspaceName": "dataspace1", "schemaSetName": "schemaset1", "observedTimestamp": timestamp, "data":
Code Block |
---|
language | text |
---|
title | json data |
---|
collapse | true |
---|
| [
{
"action": "ADD",
"xpath": "/bookstore/categories/[@code=3]",
"payload": {
"code": 3,
"name": "kidz"
}
},
{
"action": "DELETE",
"xpath": "/bookstore/categories/[@code=1]",
"payload": {
"code": 1,
"name": "Fiction"
}
},
{
"action": "UPDATE",
"xpath": "/bookstore/categories/[@code=2]",
"payload": {
"name": "Comic"
}
}
] |
{ |