blob: 77e8bfd7677b8648dd0eff5380e48833243afeb2 [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, obj, pk, credentials=None):
pass