(filters)
return fstring[:-5]
Create a filter string used to modify a SignalFX query

    :param filters: a list of (filter_name, value) tuples
    :returns: a SignalForm filter string -- 'filter("filter_1", "value_1") and filter("filter_2", "value_2")'
Create a filter string used to modify a SignalFX query
Create a filter string used to modify a SignalFX query
def _make_filter_string(filters):
    """ Create a filter string used to modify a SignalFX query

    :param filters: a list of (filter_name, value) tuples
    :returns: a SignalForm filter string -- 'filter("filter_1", "value_1") and filter("filter_2", "value_2")'
    """
    if not filters:
        return "None"

    fstring = ""
    for name, value in filters:
        fstring += f'filter("{name}", "{value}") and '
    return fstring[:-5]
def _make_filter_string ( filters ) : if not filters : return "None" fstring = "" for name , value in filters : fstring += f'filter("{name}", "{value}") and ' return fstring [ : - 5 ]