Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support enable_queue_totals when queue name is specified
For `/api/queues`, users can specify `disable_stats=true` and `enable_queue_totals=true` parameters to return a concise set of fields. However, the `enable_queue_totals` is not currently supported for `/api/queues/<vhost>/<name>`, probably just a small oversight that slipped through the cracks. This commit adds that support and updates the respective unit test, focusing on not breaking existing public functions and on simplicity, at the cost of a slight bit of duplication. (cherry picked from commit 09d1ec1)
- Loading branch information
1 parent
cca332a
commit 635d0a8
Showing
2 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters