2016-07-22 39 views
1

rabbitmqadmin得到如下回應RabbitMQ獲取隊列數據不會添加標題數據。任何想法如何得到它

+-------------+----------+---------------+--------------+------------------+-------------+ 
| routing_key | exchange | message_count | payload | payload_encoding | redelivered | 
+-------------+----------+---------------+--------------+------------------+-------------+ 
| test  |   | 0    | hello, world | string   | False  | 
+-------------+----------+---------------+--------------+------------------+-------------+

我想獲得頭隨着越來越多的一個列,其值隊列=測試重新排隊=假打印。

如何在上表中獲取它的標題值。如果在同一個表中不可能,那麼如何在其他表中獲得它。我想發佈我的標題數據也與響應數據

回答

1

只需使用--depth。

實施例而不--depth: rabbitmqadmin得到隊列= smsc01重新排隊=真實計數= 10

結果而不頭:

 
> +-------------+----------+---------------+---------+---------------+------------------+-------------+ 
> | routing_key | exchange | message_count | payload | payload_bytes | payload_encoding | redelivered | 
> +-------------+----------+---------------+---------+---------------+------------------+-------------+ 
> | empty  | smsc-ex | 4    | empty1 | 6    | string   | True  | 
> | empty  | smsc-ex | 3    | empty2 | 6    | string   | True  | 
> | empty  | smsc-ex | 2    | empty3 | 6    | string   | True  | 
> | empty  | smsc-ex | 1    | empty3 | 6    | string   | True  | 
> | empty  | smsc-ex | 0    | empty4 | 6    | string   | True  | 
> +-------------+----------+---------------+---------+---------------+------------------+-------------+ 

實施例與--depth: rabbitmqadmin得到隊列= smsc01 requeue = true count = 10 --depth = 4

結果與標題:

 
> +-------------+----------+---------------+---------+---------------+------------------+--------------------------+---------------------------+-------------+ 
> | routing_key | exchange | message_count | payload | payload_bytes | payload_encoding | properties.delivery_mode | properties.headers.msisdn | redelivered | 
> +-------------+----------+---------------+---------+---------------+------------------+--------------------------+---------------------------+-------------+ 
> | empty  | smsc-ex | 4    | empty1 | 6    | string   | 2      |       | True  | 
> | empty  | smsc-ex | 3    | empty2 | 6    | string   | 2      |       | True  | 
> | empty  | smsc-ex | 2    | empty3 | 6    | string   | 2      |       | True  | 
> | empty  | smsc-ex | 1    | empty3 | 6    | string   | 2      |       | True  | 
> | empty  | smsc-ex | 0    | empty4 | 6    | string   | 2      | 48654987321    | True  | 
> +-------------+----------+---------------+---------+---------------+------------------+--------------------------+---------------------------+-------------+ 
相關問題