code: @RequestMapping(value = "", method = RequestMethod.GET)
  	public PagedResources<? extends MetricResource> list(
  			Pageable pageable,
  			PagedResourcesAssembler<Metric<Double>> pagedAssembler,
  			@RequestParam(value = "detailed", defaultValue = "false") boolean detailed) {
  		/* Page */ Iterable<Metric<?>> metrics = metricRepository.findAll(/* pageable */);
  		List<Metric<Double>> content = filterCounters(metrics);
  		long count = content.size();
  		long pageEnd = Math.min(count, pageable.getOffset() + pageable.getPageSize());
  		Page counterPage = new PageImpl<>(content.subList(toIntExact(pageable.getOffset()), toIntExact(pageEnd)),
  				pageable, content.size());
  		ResourceAssembler<Metric<Double>, ? extends MetricResource> assemblerToUse =
  				detailed ? counterResourceAssembler : shallowResourceAssembler;
  		return pagedAssembler.toResource(counterPage, assemblerToUse);
  	}
docs: List Counters that match the given criteria.
  
  @param pageable {@link Pageable}
  @param pagedAssembler {@link PagedResourcesAssembler}
  @param detailed details
  @return {@link PagedResources}