public PagedList<PoolUsageMetrics> listUsageMetrics(final PoolListUsageMetricsOptions poolListUsageMetricsOptions) {
        ServiceResponseWithHeaders<Page<PoolUsageMetrics>, PoolListUsageMetricsHeaders> response = listUsageMetricsSinglePageAsync(poolListUsageMetricsOptions).toBlocking().single();
        return new PagedList<PoolUsageMetrics>(response.body()) {
            @Override
            public Page<PoolUsageMetrics> nextPage(String nextPageLink) {
                PoolListUsageMetricsNextOptions poolListUsageMetricsNextOptions = null;
                if (poolListUsageMetricsOptions != null) {
                    poolListUsageMetricsNextOptions = new PoolListUsageMetricsNextOptions();
                    poolListUsageMetricsNextOptions.withClientRequestId(poolListUsageMetricsOptions.clientRequestId());
                    poolListUsageMetricsNextOptions.withReturnClientRequestId(poolListUsageMetricsOptions.returnClientRequestId());
                    poolListUsageMetricsNextOptions.withOcpDate(poolListUsageMetricsOptions.ocpDate());
                }
                return listUsageMetricsNextSinglePageAsync(nextPageLink, poolListUsageMetricsNextOptions).toBlocking().single().body();
            }
        };
    }
public PagedList < PoolUsageMetrics > listUsageMetrics ( final PoolListUsageMetricsOptions poolListUsageMetricsOptions ) { ServiceResponseWithHeaders < Page < PoolUsageMetrics > , PoolListUsageMetricsHeaders > response = listUsageMetricsSinglePageAsync ( poolListUsageMetricsOptions ) . toBlocking ( ) . single ( ) ; return new PagedList < PoolUsageMetrics > ( response . body ( ) ) { @ Override public Page < PoolUsageMetrics > nextPage ( String nextPageLink ) { PoolListUsageMetricsNextOptions poolListUsageMetricsNextOptions = null ; if ( poolListUsageMetricsOptions != null ) { poolListUsageMetricsNextOptions = new PoolListUsageMetricsNextOptions ( ) ; poolListUsageMetricsNextOptions . withClientRequestId ( poolListUsageMetricsOptions . clientRequestId ( ) ) ; poolListUsageMetricsNextOptions . withReturnClientRequestId ( poolListUsageMetricsOptions . returnClientRequestId ( ) ) ; poolListUsageMetricsNextOptions . withOcpDate ( poolListUsageMetricsOptions . ocpDate ( ) ) ; } return listUsageMetricsNextSinglePageAsync ( nextPageLink , poolListUsageMetricsNextOptions ) . toBlocking ( ) . single ( ) . body ( ) ; } } ; }
Lists the usage metrics, aggregated by pool across individual time intervals, for the specified account.
If you do not specify a $filter clause including a poolId, the response includes all pools that existed in the account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.

@param poolListUsageMetricsOptions Additional parameters for the operation
@throws IllegalArgumentException thrown if parameters fail the validation
@throws BatchErrorException thrown if the request is rejected by server
@throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@return the PagedList&lt;PoolUsageMetrics&gt; object if successful.