UnifiAPI.py 文件源码

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

项目:pythonUnifiAPI 作者: delian 项目源码 文件源码
def stat_hourly_ap(self, start=None, end=None):
        """
        Extracting statistics per site from start to end (unixtimestamps)
        :param start:
        :param end:
        :return:
        """
        unixend = int(time.time()) if end is None else end
        unixstart = (unixend - 7 * 24 * 3600) if start is None else start

        content = self.sitecmdjson('/stat/report/hourly.ap', {
            'attrs': ['bytes', 'num_sta', 'time'],
            'start': unixstart,
            'end': unixend
        })
        return self.response(content, inspect.stack()[0].function, 'Hourly Statistics for AP')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号