public Observable<ServiceResponse<Page<ResourceMetricInner>>> listMultiRoleMetricsWithServiceResponseAsync(final String resourceGroupName, final String name, final String startTime, final String endTime, final String timeGrain, final Boolean details, final String filter) {
        return listMultiRoleMetricsSinglePageAsync(resourceGroupName, name, startTime, endTime, timeGrain, details, filter)
            .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));
                }
            });
    }
public Observable < ServiceResponse < Page < ResourceMetricInner > > > listMultiRoleMetricsWithServiceResponseAsync ( final String resourceGroupName , final String name , final String startTime , final String endTime , final String timeGrain , final Boolean details , final String filter ) { return listMultiRoleMetricsSinglePageAsync ( resourceGroupName , name , startTime , endTime , timeGrain , details , filter ) . 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 ) ) ; } } ) ; }
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.
@param startTime Beginning time of the metrics query.
@param endTime End time of the metrics query.
@param timeGrain Time granularity of the metrics query.
@param details Specify &lt;code&gt;true&lt;/code&gt; to include instance details. The default is &lt;code&gt;false&lt;/code&gt;.
@param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the PagedList&lt;ResourceMetricInner&gt; object