[rabbitmq-discuss] Document HTTP API responses?

Brian K. Jones bkjones at gmail.com
Fri Jun 3 00:30:22 BST 2011


Here's a quick peek at two responses to the /api/overview call. Same server software version. 
#############################
{
"management_version":"2.4.1",
"statistics_level":"fine",

"message_stats":{"publish":2445210,"publish_details":{"rate":4.593489204928332,"last_event":1307046917111},"ack":31,"ack_details":{"rate":0,"last_event":1306966493190},"deliver":57,"deliver_details":{"rate":0,"last_event":1306966493190},"deliver_get":6228204,"deliver_get_details":{"rate":4.593484491297741,"last_event":1307046917111},"deliver_no_ack":6228147,"deliver_no_ack_details":{"rate":4.593484491297741,"last_event":1307046917111}},

"queue_totals":{"messages":44,"messages_ready":18,"messages_unacknowledged":26}
}
################################
{
"management_version":"2.4.1",
"statistics_level":"fine",

"message_stats":{"publish":11340,"publish_details":{"rate":0,"last_event":1307041432286},"ack":401,"ack_details":{"rate":0,"last_event":1307039730923},"deliver":401,"deliver_details":{"rate":0,"last_event":1307039730923},"deliver_get":215791,"deliver_get_details":{"rate":0,"last_event":1307041433196},"deliver_no_ack":215390,"deliver_no_ack_details":{"rate":0,"last_event":1307041433196}},

"queue_totals":{"messages":0,"messages_ready":0,"messages_unacknowledged":0},
"node":"rabbit at mybox",
"statistics_db_node":"rabbit at mybox",
"listeners":[{"node":"rabbit at mybox","protocol":"amqp","host":"mybox.example.com","ip_address":"::","port":5672},{"node":"rabbit at mybox","protocol":"stomp","host":"mybox.example.com","ip_address":"::","port":61613}]
}

#################################

As you can see, the second broker has 'node', 'statistics_db_node', and 'listeners', whereas the first broker does not. Just now I noticed we're supporting STOMP on one of the servers, but does that account for all of the differences above? What other JSON responses will be different because of this, and how? What other configuration options affect the JSON responses? How are they affected?

brian



-- 
Brian K. Jones
Sent over the internet
My blog: http://www.protocolostomy.com
Follow me: http://twitter.com/bkjones


On Thursday, June 2, 2011 at 4:35 PM, Brian K. Jones wrote:

> Hi, 
> 
> I'm testing a Python module that provides an easy way to work with the RabbitMQ Management HTTP API. I'm testing against various different broker instances, and I'm finding that, although they're the same version, there are apparently circumstances that exist which make the same call return different collections of attributes across different servers. For example, some hosts' 'overview' have a 'listeners' attribute while others don't. For queues, some have a 'node' attribute (iirc), and others don't. I imagine there are more of these situations, and I'm wondering if these conditions are documented anywhere? This would obviously be useful to those writing any code against the API as well, not just module authors (think of the poor ops folks writing nagios checks!). :) 
> 
> If the expectation is that servers with the same versions of the server and management software return the same exact attributes given the same exact calls, then let me know and I'll document these issues more thoroughly & update this thread (unless there's a public bug tracker?)
> 
> Thanks, 
> brian
> 
> 
> -- 
> Brian K. Jones
> Sent over the internet
> My blog: http://www.protocolostomy.com
> Follow me: http://twitter.com/bkjones
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110602/41f2ca52/attachment.htm>


More information about the rabbitmq-discuss mailing list