Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Windows Azure Storage Metrics Client Library for NodeJS
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
examples
lib
test
.gitignore
.npmignore
ChangeLog.txt
LICENSE.txt
README.md
makefile
package.json

README.md

Windows Azure Storage Metrics SDK for Node.js

This project provides a Node.js package that makes it easy to access Windows Azure Storage Metrics.

With Windows Azure Websites you can deploy node.js applications to the cloud in just seconds using git.

For documentation on how to host Node.js applications on Windows Azure, please see the Windows Azure Node.js Developer Center.

Library Features

  • Capacity Metrics
    • Retrieve daily capacity metrics for all blobs in an Azure account
  • Transaction Metrics
    • Retrieve hourly transaction metrics for all blobs, queues and tables in an Azure account
  • Filter by date
    • Specify a begin date and optional end date when retrieving metrics

Getting Started

Download Source Code

To get the source code of the SDK via git just type:

git clone https://github.com/AltaModaTech/azure-metrics-for-node.git
cd ./azure-metrics-for-node

Download Package

Alternatively, to get the source code via the Node Package Manager (npm), type

npm install azure-metrics-for-node

You can use these packages against the cloud Windows Azure Services.

Usage

Blob Capacity Metrics

var opts = {};
opts.beginDate = new Date().addDays(-5);    // Retrieve the last 5 days of metrics
var metricsService = azureMetrics.createMetricsService();
metricsService.getBlobCapacities( opts, function(error, capacityEntities){
    if(error === null){
        // use capacityEntities JSON data
    }
});

If you encounter any bugs with the library please file an issue in the Issues section of the project.

Learn More

Windows Azure Node.js Developer Center

Something went wrong with that request. Please try again.