Spirent / openperf

Infrastructure and application test and analysis framework
Apache License 2.0
18 stars 15 forks source link

[analyzer] Improvement for /packet/analyzers/xxx/reset #403

Open ronanjs opened 3 years ago

ronanjs commented 3 years ago

When resetting an analyzer, is it possible to return the current result for the old analyser, before the reset (and not for the new one, after the reset)?

DerangedMonkeyNinja commented 3 years ago

I think this would make the API inconsistent. reset is really just a short cut way of POSTing to stop and then start. The stop request doesn't return anything and the start request does. You can always query the result you're stopping, as it won't be deleted unless you explicitly submit a DELETE request.

I'm guessing you want this just for convenience?