message.updates
message.updates()
message.updates(messagetype)
Description
Returns a nested map that contains all inserted, updated and deleted fields of the message. Only processes the message of type messagetype. The resulting map contains an entry for each field, in the same place where that field appears in the message, with a structure containing action=insert/update/delete and the before and after values where applicable.
Without messagetype it's the same as updates(message.headers().message_type).
Parameters
| Parameter | Type | Explanation |
|---|---|---|
| messagetype | String | The message type of the message (located in headers/metadata) |
Example
api.wto(message.updates("NormalizedMetric"))
updates = message.updates()
api.wto(updates)