IWebSiteOperations.GetUsageMetricsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET