Closed msaimper closed 9 months ago
I am reporting here but I believe is a bug.
Here the 'epoch' string parameter is used to set the timestamp precision: https://github.com/orca-zhang/influxdb-cpp/blob/e4ef3a3982bce86b9dfec94f457f2bbe9f4a8d18/influxdb.hpp#L228
Although according to the InfluxDB API documentation the 'precision' string parameter should be used for 'write' endpoints while 'epoch' should be used for query:
https://docs.influxdata.com/influxdb/v1.8/tools/api/#write-http-endpoint
So it seems that we need a switch here if the command is write or query and use precision for the former and epoch for the latter?
Cheers
I am reporting here but I believe is a bug.
Here the 'epoch' string parameter is used to set the timestamp precision: https://github.com/orca-zhang/influxdb-cpp/blob/e4ef3a3982bce86b9dfec94f457f2bbe9f4a8d18/influxdb.hpp#L228
Although according to the InfluxDB API documentation the 'precision' string parameter should be used for 'write' endpoints while 'epoch' should be used for query:
https://docs.influxdata.com/influxdb/v1.8/tools/api/#write-http-endpoint
So it seems that we need a switch here if the command is write or query and use precision for the former and epoch for the latter?
Cheers