locked
Nodejs Azure storage blob service : getServiceStats not working RRS feed

  • Question

  • I use NodeJS 'azure-storage' module (version: 0.3.3)

    I would like to get global stats about azure storage blob service.

    Of course, I wont query all blobs to calculate by hand the total amount of storage used.

    So I think that using "blobService.getServiceStats" could help me. But this method return an error.

    this.blobService.getServiceStats(function(error, result) {
      if (error) {
         console.info(error);
      } else {
        console.info(result);
      }
    });

    This result in the following error :

    { [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' }

    This query parameter 'comp = stats' seems to be set by the SDK itself : blobservice.js line 156 [1]

    What's wrong ? do you think I should open an issue [2] ?

    Do you know a (working) way to get global blob stats ?

    regards

    references

     [1] https://github.com/Azure/azure-storage-node/blob/master/lib/services/blob/blobservice.js#L156

     [2] https://github.com/Azure/azure-storage-node

    Friday, October 17, 2014 1:09 PM

Answers

All replies