# 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
