public void reportMetrics(Context ctx) {
    handleTable(
        ctx,
        handler -> {
          String bodyJson = ctx.body();
          ReportMetricsRequest metricsRequest = ReportMetricsRequestParser.fromJson(bodyJson);
          ServerTableIdentifier identifier = handler.tableMetadata().getTableIdentifier();
          IcebergReportEvent event =
              new IcebergReportEvent(
                  identifier.getCatalog(),
                  identifier.getDatabase(),
                  identifier.getTableName(),
                  false,
                  metricsRequest.report());
          EventsManager.getInstance().emit(event);
          return null;
        });
  }
POST PREFIX/v1/catalogs/{catalog}/namespaces/{namespace}/tables/{table}/metrics
amoro-ams/src/main/java/org/apache/amoro/server/RestCatalogService.java