Get field_key, field_value pair from csv data row

get field_key, field_value pair from csv

I receive this data with a upd listener:

2023-02-13 22:21:11;temperature;19.2
2023-02-13 22:47:44;humidity;45.0

csv_column_names = ["timestamp", "metric", "value"]

both metric and value gets intepreted as a field_key

but metric should become field_key
and value should become field_value

how can this be done?

Take a look at the pivot processor

1 Like