def get_statistics(request):
"""
Args:
request:
Returns:
a general set of statistics
:Example:
curl -X GET http://localhost:8081/foglamp/statistics
"""
payload = PayloadBuilder().SELECT(("key", "description", "value")).ORDER_BY(["key"]).payload()
storage_client = connect.get_storage()
results = storage_client.query_tbl_with_payload('statistics', payload)
return web.json_response(results['rows'])
评论列表
文章目录