code: public UsagesResultInner getUsages(String resourceGroupName, String accountName, String filter) {
          return getUsagesWithServiceResponseAsync(resourceGroupName, accountName, filter).toBlocking().single().body();
      }
docs: Get usages for the requested Cognitive Services account.
  
  @param resourceGroupName The name of the resource group within the user's subscription.
  @param accountName The name of Cognitive Services account.
  @param 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).
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ErrorException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the UsagesResultInner object if successful.