blob: f7eb1b9b348db44e65af22bfcc767e1c8c9325fb [file] [log] [blame]
# Implement this interface
# to serve as a driver for analytics
class DashboardStatistics(dict):
def __init__(self):
self['stat_list'] = []
self['average'] = 0
self['sum'] = 0
self['unit'] = 'units'
# stat_list is a list of dicts
# [ {'timestamp': datetime, 'value': value} ]
class MonitorDriver:
def __init__(self):
pass
def get_meter(self, meter_name, credentials):
pass