statistics.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:FogLAMP 作者: foglamp 项目源码 文件源码
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'])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号