datalogd.plugins.timestamp_datafilter module¶
- class datalogd.plugins.timestamp_datafilter.TimeStampDataFilter(sinks=[])[source]¶
Bases:
DataFilterAdd or update a timestamp field to data using the current system clock.
- receive(data)[source]¶
Accept the provided
dataand add a timestamp field.If
data, or elements in thedatalist aredicts, then a “timestamp” field will be added. Otherwise, the data entries will be converted to adictwith the old entry stored under a “value” field.- Parameters:
data – Data to add a timestamp to.