def listing(conn, credentials): 'Prints out the ids for time series that Qumulo API can provide.' seconds = int(time.time() - 10) data = analytics.time_series_get(conn, credentials, seconds)[0] for i in data: print(i['id'])
def main(conninfo, credentials, args): print analytics.time_series_get(conninfo, credentials, args.begin_time)
def timeseries(conn, credentials, seconds, data_id): 'Returns the raw values for data_id up to seconds ago as a list.' seconds = int(time.time() - seconds) data = analytics.time_series_get(conn, credentials, seconds)[0] return [i for i in data if i['id'] == data_id][0]['values']