Beispiel #1
0
def do_query(query, from_time, to_time):
    # return api_ts list
    responseList = []
    tsquery = TimeSeriesQuery()
    for response in tsquery.query(query, from_time, to_time):
        responseList.append(response)
    return responseList
Beispiel #2
0
def do_query_rollup(query, from_time, to_time, desired_rollup,
                    must_use_desired_rollup):
    responseList = []
    tsquery = TimeSeriesQuery()
    for response in tsquery.query_rollup(query, from_time, to_time,
                                         desired_rollup,
                                         must_use_desired_rollup):
        responseList.append(response)
    return responseList