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')
评论列表
文章目录