

def stop(self, historics_id, reason=''):
    ' Stop an existing Historics query.\n\n            Uses API documented at http://dev.datasift.com/docs/api/rest-api/endpoints/historicsstop\n\n            :param historics_id: playback id of the job to stop\n            :type historics_id: str\n            :param reason: optional reason for stopping the job\n            :type reason: str\n            :return: dict of REST API output with headers attached\n            :rtype: :class:`~datasift.request.DictResponse`\n            :raises: :class:`~datasift.exceptions.DataSiftApiException`, :class:`requests.exceptions.HTTPError`\n        '
    return self.request.post('stop', data=dict(id=historics_id, reason=reason))

dataset/ETHPy150Open datasift/datasift-python/datasift/historics.py Historics.stop/original