Udostępnij za pośrednictwem


WebSiteOperationsExtensions.GetUsageMetrics Method

Definition

You can retrieve current usage metrics for a site by issuing an HTTP GET request. The metrics returned include CPU Time, Data In, Data Out, Local Bytes Read, Local Bytes Written, Network Bytes Read, Network Bytes Written, WP Stop Requests, Memory Usage, CPU Time - Minute Limit, and File System Storage. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166991.aspx for more information)

public static Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteGetUsageMetricsResponse GetUsageMetrics (this Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations operations, string webSpaceName, string webSiteName);
static member GetUsageMetrics : Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations * string * string -> Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteGetUsageMetricsResponse
<Extension()>
Public Function GetUsageMetrics (operations As IWebSiteOperations, webSpaceName As String, webSiteName As String) As WebSiteGetUsageMetricsResponse

Parameters

operations
IWebSiteOperations

Reference to the Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.

webSpaceName
String

Required. The name of the web space.

webSiteName
String

Required. The name of the web site.

Returns

The Get Usage Metrics Web Site operation response.

Applies to