blob: 46ebe2ee923b1d10b98fab11bd11cecef0dded4f [file] [log] [blame]
Sapan Bhatia11a32942015-01-07 01:09:02 -05001from django.http import HttpResponse
2from monitor import driver
3import json
4
5def Stats(request):
6 model = request.GET['model_name']
7 pk = int(request.GET['pk'])
8 meter = int(request.GET['meter'])
9
10 meters = monitor.get_meters(meter, model, pk)
11 return json.dumps(meters)