Skip to content
Snippets Groups Projects
Commit 221b4cd7 authored by Vaishali Mangwani's avatar Vaishali Mangwani
Browse files

Update DataNotification.md - added deletionType in delete event

parent 358e1370
No related branches found
No related tags found
3 merge requests!232Update os-core-lib-azure,!231initial commit,!192Update DataNotification.md - added deletionType in delete event
Pipeline #98779 failed
...@@ -69,6 +69,18 @@ A sample output is shown below. Please note the "name" of the topic. This is req ...@@ -69,6 +69,18 @@ A sample output is shown below. Please note the "name" of the topic. This is req
"op": "update", "op": "update",
"previousVersionKind": "common:petrel:regularheightfieldsurface:1.0.0" "previousVersionKind": "common:petrel:regularheightfieldsurface:1.0.0"
}, },
{
"id": "common:abc:123",
"kind": "common:petrel:regularheightfieldsurface:1.0.0",
"op": "delete",
"deletionType": "soft"
},
{
"id": "common:abc:123",
"kind": "common:petrel:regularheightfieldsurface:1.0.0",
"op": "delete",
"deletionType": "hard"
}
... ...
] ]
}, },
...@@ -453,7 +465,8 @@ The sample message for record change notification looks like this: ...@@ -453,7 +465,8 @@ The sample message for record change notification looks like this:
[ [
{"id":"record_id_1","kind":"kind1","op":"create","recordUpdated":"false"}, {"id":"record_id_1","kind":"kind1","op":"create","recordUpdated":"false"},
{"id":"record_id_1","kind":"kind1","op":"create","recordUpdated":"true"}, {"id":"record_id_1","kind":"kind1","op":"create","recordUpdated":"true"},
{"id":"record_id_2","kind":"kind2","op":"delete"} {"id":"record_id_2","kind":"kind2","op":"delete","deletionType":"soft"},
{"id":"record_id_2","kind":"kind2","op":"delete","deletionType":"hard"}
... ...
] ]
``` ```
...@@ -646,4 +659,4 @@ properties: ...@@ -646,4 +659,4 @@ properties:
- There is no filtering applied on messages (such as based on the kind etc.) at the moment in OSDU. All the messages will be pushed to consumers. - There is no filtering applied on messages (such as based on the kind etc.) at the moment in OSDU. All the messages will be pushed to consumers.
- Updates to existing records are notified as `create` event with attribute `recordUpdated` set to true. - Updates to existing records are notified as `create` event with attribute `recordUpdated` set to true.
[Back to Table of Contents](#TOC) [Back to Table of Contents](#TOC)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment