code: public Observable<RegistryStatisticsInner> getStatsAsync(String resourceGroupName, String resourceName) {
          return getStatsWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<RegistryStatisticsInner>, RegistryStatisticsInner>() {
              @Override
              public RegistryStatisticsInner call(ServiceResponse<RegistryStatisticsInner> response) {
                  return response.body();
              }
          });
      }
docs: Get the statistics from an IoT hub.
  Get the statistics from an IoT hub.
  
  @param resourceGroupName The name of the resource group that contains the IoT hub.
  @param resourceName The name of the IoT hub.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the RegistryStatisticsInner object