mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
creation of lfdata.py, import of lfdata.py
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
This commit is contained in:
39
py-json/lfdata.py
Normal file
39
py-json/lfdata.py
Normal file
@@ -0,0 +1,39 @@
|
||||
#!/usr/bin/env python3
|
||||
import re
|
||||
import time
|
||||
import pprint
|
||||
from pprint import pprint
|
||||
from LANforge import LFRequest
|
||||
from LANforge import LFUtils
|
||||
from LANforge import lfcli_base
|
||||
from LANforge.lfcli_base import LFCliBase
|
||||
from LANforge import add_monitor
|
||||
from LANforge.add_monitor import *
|
||||
import os
|
||||
import datetime
|
||||
import base64
|
||||
import xlsxwriter
|
||||
import pandas as pd
|
||||
import requests
|
||||
import ast
|
||||
import csv
|
||||
|
||||
# LFData class actions:
|
||||
# - Methods to collect data/store data (use from monitor instance) - used by Profile class.
|
||||
# - file open/save
|
||||
# - save row (rolling) - to CSV (standard)
|
||||
# - headers
|
||||
# - file to data-storage-type conversion and vice versa (e.g. dataframe (or datatable) to file type and vice versa)
|
||||
# - other common util methods related to immediate data storage
|
||||
# - include compression method
|
||||
# - monitoring truncates every 5 mins and sends to report? --- need clarification. truncate file and rewrite to same file?
|
||||
# - large data collection use NFS share to NAS.
|
||||
# Websocket class actions:
|
||||
#reading data from websockets
|
||||
|
||||
class LFDataCollection(LFCliBase):
|
||||
pass
|
||||
|
||||
|
||||
class WebSocket():
|
||||
pass
|
||||
Reference in New Issue
Block a user