# Path: stack_configs/influx_functions.py
# def getInfluxConnection():
#     
#     config=settings.INFLUXDB
#     
#     logger.info('Connecting to influx %s', config['host'])
#     
#     try:
#         myClient = InfluxDBClient(host=config['host'],port=config['port'],username=config['user'],password=config['password'],ssl=config['use_ssl'],verify_ssl=config['verify_certs'])
#     except Exception as e: 
#         logger.critical('couldnt connect to influx %s,', e)
#                            
#         return str(e)
#     return myClient  


from django.contrib.auth.models import User
from django.conf import settings
from .influx_functions import getInfluxConnection
    from requests import Request, Session
import logging
import email
import json
import random
import string


logger = logging.getLogger(__name__)  

class testObj(object):

    def __init__(self, name,status,message):
        self.name = name
        self.status = status #true or false

# Path: stack_configs/influx_functions.py
# def getInfluxConnection():
#     
#     config=settings.INFLUXDB
#     
#     logger.info('Connecting to influx %s', config['host'])
#     
#     try:
#         myClient = InfluxDBClient(host=config['host'],port=config['port'],username=config['user'],password=config['password'],ssl=config['use_ssl'],verify_ssl=config['verify_certs'])
#     except Exception as e: 
#         logger.critical('couldnt connect to influx %s,', e)
#                            
#         return str(e)
#     return myClient  


# Path: stack_configs/grafana_functions.py
from django.contrib.auth.models import User
from django.conf import settings
from .influx_functions import getInfluxConnection
    from requests import Request, Session
import logging
import email
import json
import random
import string



logger = logging.getLogger(__name__)  

class testObj(object):

    def __init__(self, name,status,message):
        self.name = name
        self.status = status #true or false

        self.message= message #error message human readable