コード例 #1
0
 /// <summary>
 /// Get usages for the requested Cognitive Services account
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription.
 /// </param>
 /// <param name='accountName'>
 /// The name of Cognitive Services account.
 /// </param>
 /// <param name='filter'>
 /// An OData filter expression that describes a subset of usages to return. The
 /// supported parameter is name.value (name of the metric, can have an or of
 /// multiple names).
 /// </param>
 public static UsagesResult GetUsages(this IAccountsOperations operations, string resourceGroupName, string accountName, string filter = default(string))
 {
     return(operations.GetUsagesAsync(resourceGroupName, accountName, filter).GetAwaiter().GetResult());
 }