UsageMetricsOperationsExtensions.ListAsync Method (IUsageMetricsOperations, String, String)
The List operation lists the usage metrics for the resource.
Assembly: Microsoft.Azure.Insights (in Microsoft.Azure.Insights.dll)
public static Task<UsageMetricListResponse> ListAsync( this IUsageMetricsOperations operations, string resourceUri, string filterString )
Parameters
- operations
-
Type:
Microsoft.Azure.Insights.IUsageMetricsOperations
Reference to the Microsoft.Azure.Insights.IUsageMetricsOperations.
- resourceUri
-
Type:
System.String
Required. The resource identifier of the target resource to get usages for.
- filterString
-
Type:
System.String
Required. An 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 "".
Return Value
Type: System.Threading.Tasks.Task<UsageMetricListResponse>The List Usage Metric operation response.
Show: