'Return the list of keys in the ResultSet.
:return: List of keys. Keys are tuples (serie_name, tags)'

def keys(self):

    keys = []
    for serie in self._get_series():
        keys.append((serie.get(u'measurement', serie.get(u'name', u'results')), serie.get(u'tags', None)))
    return keys
