code: public Observable<ServiceResponse<Page<ResourceMetricInner>>> listMultiRoleMetricsWithServiceResponseAsync(final String resourceGroupName, final String name) {
          return listMultiRoleMetricsSinglePageAsync(resourceGroupName, name)
              .concatMap(new Func1<ServiceResponse<Page<ResourceMetricInner>>, Observable<ServiceResponse<Page<ResourceMetricInner>>>>() {
                  @Override
                  public Observable<ServiceResponse<Page<ResourceMetricInner>>> call(ServiceResponse<Page<ResourceMetricInner>> page) {
                      String nextPageLink = page.body().nextPageLink();
                      if (nextPageLink == null) {
                          return Observable.just(page);
                      }
                      return Observable.just(page).concatWith(listMultiRoleMetricsNextWithServiceResponseAsync(nextPageLink));
                  }
              });
      }
docs: Get metrics for a multi-role pool of an App Service Environment.
  Get metrics for a multi-role pool of an App Service Environment.
  
  @param resourceGroupName Name of the resource group to which the resource belongs.
  @param name Name of the App Service Environment.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the PagedList&lt;ResourceMetricInner&gt; object