code: public List<StatisticsModelInner> listByAutomationAccount(String resourceGroupName, String automationAccountName, String filter) {
          return listByAutomationAccountWithServiceResponseAsync(resourceGroupName, automationAccountName, filter).toBlocking().single().body();
      }
docs: Retrieve the statistics for the account.
  
  @param resourceGroupName Name of an Azure Resource group.
  @param automationAccountName The name of the automation account.
  @param filter The filter to apply on the operation.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the List&lt;StatisticsModelInner&gt; object if successful.