IWebSiteOperations.GetUsageMetricsAsync Method (String, String, CancellationToken)
Asynchronously retrieves the usage metrics of a website.
Namespace: Microsoft.WindowsAzure.Management.WebSites
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)
Syntax
Task<WebSiteGetUsageMetricsResponse> GetUsageMetricsAsync(
string webSpaceName,
string webSiteName,
CancellationToken cancellationToken
)
Task<WebSiteGetUsageMetricsResponse^>^ GetUsageMetricsAsync(
String^ webSpaceName,
String^ webSiteName,
CancellationToken cancellationToken
)
abstract GetUsageMetricsAsync :
webSpaceName:string *
webSiteName:string *
cancellationToken:CancellationToken -> Task<WebSiteGetUsageMetricsResponse>
Function GetUsageMetricsAsync (
webSpaceName As String,
webSiteName As String,
cancellationToken As CancellationToken
) As Task(Of WebSiteGetUsageMetricsResponse)
Parameters
webSpaceName
Type: System.StringThe name of the web space.
webSiteName
Type: System.StringThe name of the website.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token.
Return Value
Type: System.Threading.Tasks.Task<WebSiteGetUsageMetricsResponse>
An WebSiteGetUsageMetricsResponse object that contains the usage metrics.
Remarks
For more information about retrieving usage metrics, see Get Current Usage Metrics for a Site.
See Also
IWebSiteOperations Interface
Microsoft.WindowsAzure.Management.WebSites Namespace
Return to top