Share via


WebSiteOperationsExtensions.GetUsageMetrics 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 WebSiteGetUsageMetricsResponse GetUsageMetrics(
    this IWebSiteOperations operations,
    string webSpaceName,
    string webSiteName
)
public:
[ExtensionAttribute]
static WebSiteGetUsageMetricsResponse^ GetUsageMetrics(
    IWebSiteOperations^ operations,
    String^ webSpaceName,
    String^ webSiteName
)
static member GetUsageMetrics : 
        operations:IWebSiteOperations *
        webSpaceName:string *
        webSiteName:string -> WebSiteGetUsageMetricsResponse
<ExtensionAttribute>
Public Shared Function GetUsageMetrics (
    operations As IWebSiteOperations,
    webSpaceName As String,
    webSiteName As String
) As WebSiteGetUsageMetricsResponse

Parameters

  • webSpaceName
    Type: System.String

    Required. The name of the web space.

  • webSiteName
    Type: System.String

    Required. The name of the web site.

Return Value

Type: Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteGetUsageMetricsResponse

The Get Usage Metrics Web Site operation response.

See Also

WebSiteOperationsExtensions Class
Microsoft.WindowsAzure Namespace

Return to top