SP.Site.usage Property
Applies to: SharePoint Foundation 2010
Gets a value that specifies usage information about the site, including bandwidth, storage, and the number of visits to the site collection.
var value = SP.Site.get_usage();
Property Value
Type: SP.UsageInfo