|
@@ -12,6 +12,8 @@ import pandas as pd
|
|
|
|
|
|
from influxdb import DataFrameClient
|
|
from influxdb import DataFrameClient
|
|
|
|
|
|
|
|
+from datetime import datetime
|
|
|
|
+
|
|
|
|
|
|
class InfluxdbHandler:
|
|
class InfluxdbHandler:
|
|
"""
|
|
"""
|
|
@@ -104,6 +106,12 @@ class InfluxdbHandler:
|
|
:rtype: TYPE
|
|
:rtype: TYPE
|
|
|
|
|
|
"""
|
|
"""
|
|
|
|
+ if not isinstance(start, str):
|
|
|
|
+ start = datetime.strftime(start, format="%Y-%m-%dT%H:%M:%SZ")
|
|
|
|
+
|
|
|
|
+ if not isinstance(stop, str):
|
|
|
|
+ stop = datetime.strftime(stop, format="%Y-%m-%dT%H:%M:%SZ")
|
|
|
|
+
|
|
query = 'SELECT ' +\
|
|
query = 'SELECT ' +\
|
|
columns +\
|
|
columns +\
|
|
' FROM \"' +\
|
|
' FROM \"' +\
|