blob: 50e208c36547485ab3cdac4a392888a71475e998 [file] [log] [blame]
Sapan Bhatiab4f18122014-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'
Sapan Bhatia854a3dc2015-01-10 04:52:29 +000010 self['stat_list']=[]
Sapan Bhatiab4f18122014-12-16 01:07:33 -050011 # stat_list is a list of dicts
12 # [ {'timestamp': datetime, 'value': value} ]
13
14
15class MonitorDriver:
16 def __init__(self):
17 pass
18
Sapan Bhatia6fe8b522015-01-07 01:09:33 -050019 def get_meter(self, meter_name, obj, pk, credentials=None):
Sapan Bhatiab4f18122014-12-16 01:07:33 -050020 pass