mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
Fixed the csv_to_influx : no attribute RecordInflux error and InfluxRequest needs time in utc format and not in string format
Signed-off-by: shivam <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -5,7 +5,6 @@ import importlib
|
||||
from pathlib import Path
|
||||
import argparse
|
||||
|
||||
|
||||
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../")))
|
||||
|
||||
cv_test_manager = importlib.import_module("py-json.cv_test_manager")
|
||||
@@ -15,6 +14,7 @@ InfluxRequest = importlib.import_module("py-dashboard.InfluxRequest")
|
||||
RecordInflux = InfluxRequest.RecordInflux
|
||||
influx_add_parser_args = InfluxRequest.influx_add_parser_args
|
||||
|
||||
|
||||
class CSVtoInflux:
|
||||
def __init__(self,
|
||||
influx_host,
|
||||
@@ -34,7 +34,7 @@ class CSVtoInflux:
|
||||
path = Path(self.path)
|
||||
self.kpi_list = list(path.glob('**/kpi.csv'))
|
||||
for kpi in self.kpi_list:
|
||||
self.influxdb.RecordInflux.csv_to_influx(kpi)
|
||||
self.influxdb.csv_to_influx(kpi)
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user