Example #1
0
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'])
Example #2
0
 def main(conninfo, credentials, args):
     print analytics.time_series_get(conninfo, credentials, args.begin_time)
Example #3
0
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']
Example #4
0
 def main(conninfo, credentials, args):
     print analytics.time_series_get(conninfo, credentials, args.begin_time)