Astarte.Flow.Blocks.UpdateMetadata (astarte_flow v0.1.0)
This is a producer-consumer block that modifies the metadata
field of
incoming Message
s by inserting, updating or removing keys using a static
configuration.
Link to this section Summary
Functions
Starts the UpdateMetadata
block.
Link to this section Functions
Link to this function
start_link(opts)
@spec start_link([Astarte.Flow.Blocks.UpdateMetadata.Config.option()]) :: GenServer.on_start()
Starts the UpdateMetadata
block.
options
Options
:metadata
- The metadata map. All keys present in the object are either inserted or updated in theMessage
metadata, with the only exception that if a key has a value of null, it will be removed from metadata (required, object with string keys and string or null values)