Esempio n. 1
0
def make_query(metric, from_, to, lowerbound, upperbound, **query_params):
    query_params["filter"] = {
        "lt": upperbound,
        "gt": lowerbound,
    }
    query = att.make_select_query(metric, from_, to, **query_params)
    return query
Esempio n. 2
0
def make_query(metric, from_, to, lowerbound, upperbound, **query_params):
    query_params["filter"] = {
        "lt": upperbound,
        "gt": lowerbound,
    }
    query = att.make_select_query(metric, from_, to, **query_params)
    return query
Esempio n. 3
0
def select_nonexistent_time_range(dtstart, delta, N):
    begin = dtstart + delta*(N*2)
    end = dtstart + delta*(N*3)
    query = att.make_select_query("test", begin, end)
    require_empty_response(query)
Esempio n. 4
0
def select_from_nonexistent_metric(dtstart, delta, N):
    begin = dtstart
    end = dtstart + delta*(N + 1)
    query = att.make_select_query("err", begin, end)
    msg = "-not found"
    check_error_message(dtstart, delta, N, query, msg)