Exemple #1
0
    def __init__(self, command_line=None, command_arg=None):
        PersistentServerConnectionApplication.__init__(self)
        self.token = ''
        self.server_uri = ''
        self.DTO_FIELD = [
            'nodes',
            'configuration'
        ]

        self.DTO_DEFAULT_VALUE = {
            "nodes": [],
            "configuration": {}
        }
        self.FIELD_TYPE = {
            "nodes": [list],
            "configuration": [dict],
        }

        self.FIELD_NAME = {
            str: 'string',
            unicode: 'string',
            int: 'integer',
            list: 'list',
            dict: 'JSON Object'
        }
    def __init__(self, command_line=None, command_arg=None):
        PersistentServerConnectionApplication.__init__(self)
        self.DTO_FIELD = []
        self.DTO_DEFAULT_VALUE = {}
        self.FIELD_TYPE = {}
        self.FIELD_NAME = {}

        self.deploymentID = ''
        self.token = ''
        self.server_uri = ''
    def __init__(self, command_line=None, command_arg=None):
        PersistentServerConnectionApplication.__init__(self)
        self.DTO_FIELD = [
            'timestamp',
            'deploymentID',
            'eventID',
            'experienceID',
            'component',
            'userID',
            'visibility',
            'data'
        ]

        self.DTO_DEFAULT_VALUE = {
            "timestamp": lambda event: int(time.time()),
            "deploymentID": self.getDeploymentID,
            "userID": self.getUserID,
            "visibility": lambda event: ANONYMOUS,
            "eventID": lambda event: str(uuid.uuid4())
        }
        self.FIELD_TYPE = {
            "userID": [str, unicode],
            "eventID": [str, unicode],
            "experienceID": [str, unicode],
            "timestamp": [int],
            "data": [dict],
            "component": [str, unicode]
        }

        self.FIELD_NAME = {
            str: 'string',
            unicode: 'string',
            int: 'integer',
            dict: 'JSON Object'
        }

        self.schema = metrics_schema.load_schema(INST_SCHEMA_FILE)
        self.qd = get_quick_draw()
        self.deliverySchema = self.schema.delivery
        self.deliverySchema.url = self.qd.get('url')
        self.deploymentID = ''
        self.token = ''
        self.server_uri = ''
        self.userID = ''
    def __init__(self,
                 command_line=None,
                 command_arg=None,
                 entity=None,
                 services=None,
                 system_services=None,
                 packager=None,
                 instance_profile=None):
        PersistentServerConnectionApplication.__init__(self)
        self.deploymentID = ''
        self.session = None
        self.server_uri = ''

        self.command_line = command_line
        self.command_arg = command_arg
        self.en = entity or en
        self.services = services
        self.system_services = system_services
        self.packager = packager or si_packager
        self.instance_profile = instance_profile or si_instance_profile
 def __init__(self, command_line, command_arg):
     PersistentServerConnectionApplication.__init__(self)
Exemple #6
0
 def __init__(self, command_line, command_arg):
     PersistentServerConnectionApplication.__init__(self)
     #Will eventually get the user and pw from not admin/changeme
     self.user = '******'
     self.pw = 'changeme'
 def __init__(self, command_line, command_arg):
     PersistentServerConnectionApplication.__init__(self)
Exemple #8
0
 def __init__(self, command_line, command_arg):
     PersistentServerConnectionApplication.__init__(self)
     # EAI Handler
     self.rest_eai = None
 def __init__(self, command_line, command_arg, logger=None):
     self.logger = logger
     PersistentServerConnectionApplication.__init__(self)
Exemple #10
0
 def __init__(self, command_line=None, command_arg=None):
     PersistentServerConnectionApplication.__init__(self)
     self.token = ''
     self.server_uri = ''
Exemple #11
0
 def __init__(self, command_line, command_arg):
     PersistentServerConnectionApplication.__init__(self)
     apifilepath = os.path.join(os.environ['SPLUNK_HOME'], 'etc', 'apps', 'virga-api', 'bin', "apiconf.json")
     with open(apifilepath) as json_data_file:
       self.cfg = json.load(json_data_file)
 def __init__(self, command_line, command_arg, logger=None):
     self.logger = logger
     PersistentServerConnectionApplication.__init__(self)