Udostępnij za pośrednictwem


WebSiteOperationsExtensions.GetUsageMetricsAsync 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 System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteGetUsageMetricsResponse> GetUsageMetricsAsync (this Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations operations, string webSpaceName, string webSiteName);
static member GetUsageMetricsAsync : Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations * string * string -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteGetUsageMetricsResponse>
<Extension()>
Public Function GetUsageMetricsAsync (operations As IWebSiteOperations, webSpaceName As String, webSiteName As String) As Task(Of 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