#NEWLINE# def content_by_name_substring( content , name ) : #NEWLINE# #INDENT# "\n    :type content: dict\n    :param content: The python dict form of the content that has been returned from a query to KairosDB\n\n    :type name: string\n    :param name: This is the string that will be used to match, as a lowercase substring, the things that we want to return.\n\n    :rtype: list\n    :returns: The list of pairs of [timestamp, value] that matched\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    and this will be turned into a python struct.  This function will\n    return a list of dicts that matched the provided name.\n\n    " #NEWLINE# r_list = list ( ) #NEWLINE# for q in content [ 'queries' ] : #NEWLINE# #INDENT# for r in q [ 'results' ] : #NEWLINE# #INDENT# if ( name . lower ( ) in r [ 'name' ] . lower ( ) ) : #NEWLINE# #INDENT# r_list . append ( r ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return r_list