code: def events(self, **kwargs):
          
          kwargs['segmentation'] = kwargs.get('segmentation', 'none')
          return self.get("events", **kwargs).body
docs: Returns a streaming handle to this job's events.
  
          :param kwargs: Additional parameters (optional). For a list of valid
              parameters, see `GET search/jobs/{search_id}/events
              <http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTsearch#GET_search.2Fjobs.2F.7Bsearch_id.7D.2Fevents>`_
              in the REST API documentation.
          :type kwargs: ``dict``
  
          :return: The ``InputStream`` IO handle to this job's events.