code: public Observable<ServiceResponse<List<StatisticsModelInner>>> listByAutomationAccountWithServiceResponseAsync(String resourceGroupName, String automationAccountName) {
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (automationAccountName == null) {
              throw new IllegalArgumentException("Parameter automationAccountName is required and cannot be null.");
          }
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          final String apiVersion = "2015-10-31";
          final String filter = null;
          return service.listByAutomationAccount(resourceGroupName, automationAccountName, this.client.subscriptionId(), filter, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<List<StatisticsModelInner>>>>() {
                  @Override
                  public Observable<ServiceResponse<List<StatisticsModelInner>>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<PageImpl1<StatisticsModelInner>> result = listByAutomationAccountDelegate(response);
                          List<StatisticsModelInner> items = null;
                          if (result.body() != null) {
                              items = result.body().items();
                          }
                          ServiceResponse<List<StatisticsModelInner>> clientResponse = new ServiceResponse<List<StatisticsModelInner>>(items, result.response());
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Retrieve the statistics for the account.
  
  @param resourceGroupName Name of an Azure Resource group.
  @param automationAccountName The name of the automation account.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the List&lt;StatisticsModelInner&gt; object