Azure的服务总线队列计数 [英] Azure Service Bus Queue Count

查看:243
本文介绍了Azure的服务总线队列计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个服务总线Q和来自Azure的门户,我可以或多或少地看到服务总线Q包含有多少行。我怎样才能使用他们的API管理得到这个数?我已经详细阅读该文档,但找到答案都没有成功。

I have a service bus Q and from the Azure portal I can more or less see how many entries the service bus Q contains. How can I get this count using their management API? I have perused the docs but have been unsuccessful in finding an answer.

推荐答案

该QueueDescription有一个属性MessageCount:<一href=\"http://msdn.microsoft.com/en-us/library/windowsazure/microsoft.servicebus.messaging.queuedescription.messagecount.aspx\"相对=nofollow> MSDN ,公告 (跳过了邮件计数详细信息)
这将允许通过.NET code

The QueueDescription has a property MessageCount: MSDN, Announcement (skip down to Message Count Details) This will allow access via .NET code

的管理API文档也表明了这暴露: MSDN
这将允许通过REST API访问

The Management API Documentation also shows this exposed: MSDN This will allow access via the Rest API

在PowerShell命令还没有公开此功能。

The PowerShell Cmdlets do not yet expose this functionality.

这篇关于Azure的服务总线队列计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆