sdinteractive / SomethingDigital_InfluxDb

Base module for sending data for InfluxDB.
3 stars 2 forks source link

Add support for setting precision #20

Closed mpchadwick closed 8 years ago

mpchadwick commented 8 years ago

When sending a timestamp along with a point InfluxDb will assume you're sending nanoseconds unless told otherwise. We are defaulting to seconds, but you can also overwrite that when instantiating the API if you'd like.

Also a minor refactor to move the maximum number of lines per send to the abstract class, rather than specifying it on a per measurement basis.