bkjones / pyrabbit

A Python module to communicate w/ the RabbitMQ HTTP Management API
http://pyrabbit.readthedocs.org
BSD 3-Clause "New" or "Revised" License
97 stars 86 forks source link

Makes get queue size supports return only needed columns #61

Open edvm opened 3 years ago

edvm commented 3 years ago

The HTTP endpoint returns a lot of fields not needed which increases the payload. RabbitMQ supports this using the columns parameter (as described here): https://rawcdn.githack.com/rabbitmq/rabbitmq-server/v3.8.16/deps/rabbitmq_management/priv/www/api/index.html

You can also restrict what information is returned per item with the columns parameter. This is a comma-separated list of subfields separated by dots.

It would be great if pyrabbit support it! :heart: