private <T> T bodyAsClass(Context ctx, Class<T> clz) {
    return jsonMapper.fromJsonString(ctx.body(), clz);
  }
POST PREFIX/v1/catalogs/{catalog}/namespaces/{namespace}/tables/{table}/metrics
amoro-ams/src/main/java/org/apache/amoro/server/RestCatalogService.java