blob: 77e8bfd7677b8648dd0eff5380e48833243afeb2 [file] [log] [blame]
Sapan Bhatiadf3130c2014-12-16 01:07:33 -05001# Implement this interface
2# to serve as a driver for analytics
3
4class DashboardStatistics(dict):
5 def __init__(self):
6 self['stat_list'] = []
7 self['average'] = 0
8 self['sum'] = 0
9 self['unit'] = 'units'
10 # stat_list is a list of dicts
11 # [ {'timestamp': datetime, 'value': value} ]
12
13
14class MonitorDriver:
15 def __init__(self):
16 pass
17
Sapan Bhatiafe962fc2015-01-07 01:09:33 -050018 def get_meter(self, meter_name, obj, pk, credentials=None):
Sapan Bhatiadf3130c2014-12-16 01:07:33 -050019 pass