WebSiteOperationsExtensions.GetUsageMetricsAsync Method (IWebSiteOperations, String, String)
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 https://msdn.microsoft.com/en-us/library/windowsazure/dn166991.aspx for more information)
Namespace: Microsoft.WindowsAzure
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)
Syntax
public static Task<WebSiteGetUsageMetricsResponse> GetUsageMetricsAsync(
this IWebSiteOperations operations,
string webSpaceName,
string webSiteName
)
public:
[ExtensionAttribute]
static Task<WebSiteGetUsageMetricsResponse^>^ GetUsageMetricsAsync(
IWebSiteOperations^ operations,
String^ webSpaceName,
String^ webSiteName
)
static member GetUsageMetricsAsync :
operations:IWebSiteOperations *
webSpaceName:string *
webSiteName:string -> Task<WebSiteGetUsageMetricsResponse>
<ExtensionAttribute>
Public Shared Function GetUsageMetricsAsync (
operations As IWebSiteOperations,
webSpaceName As String,
webSiteName As String
) As Task(Of WebSiteGetUsageMetricsResponse)
Parameters
operations
Type: Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperationsReference to the Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.
webSpaceName
Type: System.StringRequired. The name of the web space.
webSiteName
Type: System.StringRequired. The name of the web site.
Return Value
Type: System.Threading.Tasks.Task<WebSiteGetUsageMetricsResponse>
The Get Usage Metrics Web Site operation response.
See Also
WebSiteOperationsExtensions Class
Microsoft.WindowsAzure Namespace
Return to top