The set node

Set fields and/or tags to a data_point or batch. Overwrites any existing fields or tags.

If fields or tags should be written only if they do not already exist, use the default node.

Example

|set()
.fields('id', 'vs', 'df')
.field_values('some_id', 1, '05.043')

The above example will set the field id to the value 'some_id'. Accordingly vs will be set to 1, df will be set to '05.043'.

Parameters

Parameter Description Default
fields( string_list ) list of fieldnames []
field_values( list ) list of values for the given fields (must have the same length as fieldnames) []
tags( string_list ) list of tagnames []
tag_values( list ) list of values for the given tags (must have the same length as tagnames) []