public void getOptimizingStatus(Context ctx) {
    Map<String, Long> optimizingStatus = manager.getOptimizingStatus();
    List<ImmutableMap<String, ? extends Serializable>> optimizingStatusList =
        optimizingStatus.entrySet().stream()
            .map(status -> ImmutableMap.of("name", status.getKey(), "value", status.getValue()))
            .collect(Collectors.toList());
    ctx.json(OkResponse.of(optimizingStatusList));
  }
The controller that handles overview page requests.
amoro-ams/src/main/java/org/apache/amoro/server/dashboard/controller/OverviewController.java