#NEWLINE# def analyze( self , id , parameters , filter = None , start = None , end = None ) : #NEWLINE# #INDENT# ' Analyze the recorded data for a given id\n\n            :param id: The id of the recording\n            :type id: str\n            :param parameters: To set settings such as threshold and target\n            :type parameters: dict\n            :param filter: An optional secondary filter\n            :type filter: str\n            :param start: Determines time period of the analyze\n            :type start: int\n            :param end: Determines time period of the analyze\n            :type end: int\n            :param analysis_type: The type of analysis\n            :return: dict of REST API output with headers attached\n            :rtype: :class:`~datasift.request.DictResponse`\n            :raises: :class:`~datasift.exceptions.DataSiftApiException`,\n                :class:`requests.exceptions.HTTPError`\n        ' #NEWLINE# params = { #NEWLINE# #INDENT# 'id' : id , #NEWLINE# 'parameters' : id , #NEWLINE# #UNINDENT# } #NEWLINE# if filter : #NEWLINE# #INDENT# params [ 'filter' ] = filter #NEWLINE# #UNINDENT# if start : #NEWLINE# #INDENT# params [ 'start' ] = start #NEWLINE# #UNINDENT# if end : #NEWLINE# #INDENT# params [ 'end' ] = end #NEWLINE# #UNINDENT# return self . request . post ( 'analyze' , params )