Part 1: Add delta report in Kafka notification
Current implementation of Kafka notifications used enum type(Option)
while creating an event. This was inconststent when compared to delta
report.
- Delta report uses 'action' as keyword to define the action on data
change and not 'option'
- Delta report defines the actions as 'create', 'remove' and 'replace'
in lower case but current implementation uses 'CREATE', 'UPDATE' and
"DELETE' which was making it inconsistent with the format used in
delta report.
- This patch makes CpsEvents Schema consistent with Delta Report schema
as a future patch will add support for delta report in kafka
notifications.
- Changes include:
- Options are changed to Action for consistency with delta report
- CREATE, UPDATE and DELETE options are changed to create, replace
and remove respectively making them consistent with delta report
- Notifications schema name changed from CpsDataUpdatedEvent to CpsDataUpdateEvent for clarity
- Cloud events payload name changed from data to eventPayload
Issue-ID: CPS-2523
Change-Id: I2bfa766ed6abb2c2ba555820b25e5afa3c31064f
Signed-off-by: Arpit Singh <AS00745003@techmahindra.com>