Udostępnij za pośrednictwem


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

Parameters

webSpaceName
String

The name of the web space.

webSiteName
String

The name of the web site.

cancellationToken
CancellationToken

Cancellation token.

Returns

The Get Usage Metrics Web Site operation response.

Applies to