IUsageMetricsOperations.ListAsync Method (String, String, CancellationToken)
The List operation lists the usage metrics for the resource.
Namespace: Microsoft.Azure.Insights
Assembly: Microsoft.Azure.Insights (in Microsoft.Azure.Insights.dll)
Syntax
Task<UsageMetricListResponse> ListAsync(
string resourceUri,
string filterString,
CancellationToken cancellationToken
)
Task<UsageMetricListResponse^>^ ListAsync(
String^ resourceUri,
String^ filterString,
CancellationToken cancellationToken
)
abstract ListAsync :
resourceUri:string *
filterString:string *
cancellationToken:CancellationToken -> Task<UsageMetricListResponse>
Function ListAsync (
resourceUri As String,
filterString As String,
cancellationToken As CancellationToken
) As Task(Of UsageMetricListResponse)
Parameters
resourceUri
Type: System.StringThe resource identifier of the target resource to get usages for.
filterString
Type: System.StringAn OData $filter expression that supports querying by the name of the usage. For example, "name.value eq 'Percentage CPU'". Name is optional, meaning the expression may be "".
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<UsageMetricListResponse>
The List Usage Metric operation response.
See Also
IUsageMetricsOperations Interface
Microsoft.Azure.Insights Namespace
Return to top