【发布时间】:2014-12-13 01:24:01
【问题描述】:
我使用 NodeJS 'azure-storage' 模块(版本:0.3.3)
我想获取有关 azure 存储 blob 服务的全局统计信息。
当然,我不会查询所有 blob 来手动计算使用的存储总量。
所以我认为使用blobService.getServiceStats 可以帮助我。但是这个方法返回错误。
this.blobService.getServiceStats(function(error, result) {
if (error) {
console.info(error);
} else {
console.info(result);
}
});
这会导致以下错误:
{ [Error: Value for one of the query parameters specifie
RequestId:51b156a6-0001-002d-765f-b4ebd5000000
Time:2014-10-17T12:40:59.1246311Z]
code: 'InvalidQueryParameterValue',
queryparametername: 'comp',
queryparametervalue: 'stats',
reason: '',
statusCode: 400,
requestId: '51b156a6-0001-002d-765f-b4ebd5000000' }
这个查询参数 'comp = stats' 似乎是 SDK 自己设置的:blobservice.js line 156
怎么了?你认为我应该打开一个问题here 吗?
您知道获取全局 blob 统计信息的(有效)方法吗?
问候
【问题讨论】:
标签: node.js azure statistics azure-blob-storage azure-storage