Cannot specify "Flow records" data resolution in report
Opened this issue · 0 comments
In later releases of NetProfiler (e.g., 10.8.1) a new data resolution option called Flow records is available and accessible using GET on "https://netprofiler.domain.com/profiler/api/report.php?username=admin&report_type=0&filter=chattyhost.domain.com&format=csv&t_resolution=Flow records" but does not appear accessible in steelscript-netprofiler for Python.
For example,
report = SingleQueryReport(p)
report.run( realm=realms[0], groupby=groupbys[0], columns=columns,
sort_col=sort_column, timefilter=timefilter, trafficexpr=trafficfilter,
host_group_type='ByLocation', resolution='Flow records', centricity='hos',
area=None, data_filter=None, sync=True, query_columns_groupby=None,
query_columns=None, custom_columns=False)
...
throws:
Traceback (most recent call last):
File "bin/example_report.py", line 53, in
query_columns=None, custom_columns=False)
File ".../riverbed-steelscript/lib/python2.7/site-packages/steelscript/netprofiler/core/report.py", line 616, in run
custom_columns=custom_columns)
File ".../riverbed-steelscript/lib/python2.7/site-packages/steelscript/netprofiler/core/report.py", line 282, in run
rd = parse_timedelta(resolution)
File ".../riverbed-steelscript/lib/python2.7/site-packages/steelscript/common/timeutils.py", line 488, in parse_timedelta
raise ValueError("Invalid timedelta units: %s" % m.group(2))
ValueError: Invalid timedelta units: Flow
However, setting resolution='auto' or resolution='1 minute' does work.