O'Reilly logo

Windows Azure Programming Patterns for Start-ups by Riccardo Becker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing your own billing tracker

Last year, Microsoft released Windows Azure Storage Analytics, which performs logging and provides metrics on different levels for a specific storage account. The logging and metrics information can be used to find out how many storage transactions you actually performed. This feature of the platform gives you all the information to build your own billing tracker that analyzes this storage analytical information.

Enabling analytics

To turn on Storage Analytics for each service (blob, table, and queue), you must specifically set this in code or use REST requests.

In the following code snippet, everything is explicitly turned on for every service:

CloudStorageAccount account = CloudStorageAccount.DevelopmentStorageAccount; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required