def __init__(self, url, access_token, index,<EOL>source="<STR_LIT>", verify=True, timeout=<NUM_LIT>):
url = urlparse(url)<EOL>self.url = "<STR_LIT>".format(url.scheme,<EOL>url.netloc)<EOL>self.access_token = access_token.lstrip("<STR_LIT>")<EOL>self.index = index<EOL>self.host = socket.getfqdn()<EOL>self.source = source<EOL>self.session = requests.Session()<EOL>self.timeout = timeout<EOL>self.session.verify = verify<EOL>self._common_data = dict(host=self.host, source=self.source,<EOL>index=self.index)<EOL>self.session.headers = {<EOL>"<STR_LIT>": "<STR_LIT>".format(__version__),<EOL>"<STR_LIT>": "<STR_LIT>".format(self.access_token)<EOL>}<EOL>
Initializes the HECClient
Args:
    url (str): The URL of the HEC
    access_token (str): The HEC access token
    index (str): The name of the index
    source (str): The source name
    verify (bool): Verify SSL certificates
    timeout (float): Number of seconds to wait for the server to send
    data before giving up