datalogd.plugins.timestamp_datafilter module¶
-
class
datalogd.plugins.timestamp_datafilter.
TimeStampDataFilter
(sinks=[])[source]¶ Bases:
datalogd.DataFilter
Add or update a timestamp field to data using the current system clock.
-
receive
(data)[source]¶ Accept the provided
data
and add a timestamp field.If
data
, or elements in thedata
list aredict
s, then a “timestamp” field will be added. Otherwise, the data entries will be converted to adict
with the old entry stored under a “value” field.Parameters: data – Data to add a timestamp to.
-