def load_gauge(gauge_id):
    return make_json_response([{
        'id': 1,
        'timezone': 'PST'
    }, {
        'id': 2,
        'timezone': 'EST'
    }, {
        'id':
        3,
        'bar': [[55, 20, 13, 32, 5, 1, 2, 10], [10, 2, 1, 5, 32, 13, 20, 55],
                [12, 20, 30]]
    }])
def load_dashboard(dashboard):
    return make_json_response([{
        'id': 1,
        'gauge': {
            'type': 'TimeView'
        }
    }, {
        'id': 2,
        'gauge': {
            'type': 'TimeView'
        }
    }, {
        'id': 3,
        'gauge': {
            'type': 'BarView'
        }
    }])
Esempio n. 3
0
def load_gauge(gauge_id):
	return make_json_response([{'id':1, 'timezone': 'PST'}, 
							   {'id':2, 'timezone': 'EST'},
							   {'id':3, 'bar': [[55, 20, 13, 32, 5, 1, 2, 10], [10, 2, 1, 5, 32, 13, 20, 55], [12, 20, 30]]}
							   ])
Esempio n. 4
0
def load_dashboard(dashboard):
	return make_json_response([{'id':1, 'gauge': {'type':'SunView'}},
							   {'id':2, 'gauge': {'type':'DotView'}},
							   {'id':3, 'gauge': {'type':'BarView'}}])