/// <summary> /// The List operation lists the usage metrics for the resource. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Monitoring.Usages.IUsageMetricsOperations. /// </param> /// <param name='resourceUri'> /// Required. /// </param> /// <param name='metricNames'> /// Required. /// </param> /// <returns> /// The List Usage Metric operation response. /// </returns> public static Task <UsageMetricListResponse> ListAsync(this IUsageMetricsOperations operations, string resourceUri, IList <string> metricNames) { return(operations.ListAsync(resourceUri, metricNames, CancellationToken.None)); }
/// <summary> /// The List operation lists the usage metrics for the resource. /// </summary> /// <param name='operations'> /// Reference to the Microsoft.Azure.Insights.IUsageMetricsOperations. /// </param> /// <param name='resourceUri'> /// Required. The resource identifier of the target resource to get /// usages for. /// </param> /// <param name='filterString'> /// Optional. 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 "". /// </param> /// <returns> /// The List Usage Metric operation response. /// </returns> public static Task <UsageMetricListResponse> ListAsync(this IUsageMetricsOperations operations, string resourceUri, string filterString) { return(operations.ListAsync(resourceUri, filterString, CancellationToken.None)); }