mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
(netflow/flowd) add hourly totals to FlowInterfaceTotals
This commit is contained in:
parent
4a3a693f46
commit
344e04f9a7
@ -39,14 +39,14 @@ class FlowInterfaceTotals(BaseFlowAggregator):
|
||||
"""
|
||||
:return: list of sample resolutions
|
||||
"""
|
||||
return [60, 60*5]
|
||||
return [60, 60*5, 60*60]
|
||||
|
||||
@classmethod
|
||||
def history_per_resolution(cls):
|
||||
"""
|
||||
:return: dict sample resolution / expire time (seconds)
|
||||
"""
|
||||
return {60: 60*60}
|
||||
return {60: cls.seconds_per_day(1), 60*5: cls.seconds_per_day(31), 60*60: cls.seconds_per_day(365)}
|
||||
|
||||
def __init__(self, resolution):
|
||||
"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user