IWebHostingPlanOperations.GetHistoricalUsageMetricsAsync Method (String, String, WebHostingPlanGetHistoricalUsageMetricsParameters, CancellationToken)
You can retrieve historical usage metrics for a site by issuing an HTTP GET request. (see https://msdn.microsoft.com/en-us/library/windowsazure/dn166964.aspx for more information)
Namespace: Microsoft.WindowsAzure.Management.WebSites
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)
Syntax
Task<WebHostingPlanGetHistoricalUsageMetricsResponse> GetHistoricalUsageMetricsAsync(
string webSpaceName,
string webHostingPlanName,
WebHostingPlanGetHistoricalUsageMetricsParameters parameters,
CancellationToken cancellationToken
)
Task<WebHostingPlanGetHistoricalUsageMetricsResponse^>^ GetHistoricalUsageMetricsAsync(
String^ webSpaceName,
String^ webHostingPlanName,
WebHostingPlanGetHistoricalUsageMetricsParameters^ parameters,
CancellationToken cancellationToken
)
abstract GetHistoricalUsageMetricsAsync :
webSpaceName:string *
webHostingPlanName:string *
parameters:WebHostingPlanGetHistoricalUsageMetricsParameters *
cancellationToken:CancellationToken -> Task<WebHostingPlanGetHistoricalUsageMetricsResponse>
Function GetHistoricalUsageMetricsAsync (
webSpaceName As String,
webHostingPlanName As String,
parameters As WebHostingPlanGetHistoricalUsageMetricsParameters,
cancellationToken As CancellationToken
) As Task(Of WebHostingPlanGetHistoricalUsageMetricsResponse)
Parameters
webSpaceName
Type: System.StringThe name of the web space.
webHostingPlanName
Type: System.StringThe name of the web hosting plan.
parameters
Type: Microsoft.WindowsAzure.Management.WebSites.Models.WebHostingPlanGetHistoricalUsageMetricsParametersParameters supplied to the Get Historical Usage Metrics Web hosting plan operation.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<WebHostingPlanGetHistoricalUsageMetricsResponse>
The Get Historical Usage Metrics Web hosting plan operation response.
See Also
IWebHostingPlanOperations Interface
Microsoft.WindowsAzure.Management.WebSites Namespace
Return to top