#NEWLINE# def get_content_values_by_name( content , name ) : #NEWLINE# #INDENT# '\n    :type content: dict\n    :param content: A dictionary as returned by KairosDB with timestamps converted to seconds since the epoch\n\n    :type name: str\n    :param name: The name of the entry in the results whose values will be returned\n\n    :rtype: list\n    :return: a list of resulting [timestamp, value] pairs\n\n    When you\'ve got content, but only want to look at a piece of it,\n    specifically the values that are provided for a particular name, then use\n    this function.\n\n    return the dict(s) whose name matches the argument "name"\n\n    ' #NEWLINE# r_list = list ( ) #NEWLINE# for q in content [ 'queries' ] : #NEWLINE# #INDENT# for r in q [ 'results' ] : #NEWLINE# #INDENT# if ( r [ 'name' ] == name ) : #NEWLINE# #INDENT# r_list . append ( r ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return r