public static List<String> getMetricNames(String... apis) {
    final List<Route> routes;
    if (apis != null && apis.length > 0) {
      routes = Arrays.stream(apis)
          .map(HMSCatalogAdapter.Route::byName)
          .filter(Objects::nonNull)
          .collect(Collectors.toList());
    } else {
      routes = Arrays.asList(HMSCatalogAdapter.Route.values());
    }
    final List<String> metricNames = new ArrayList<>(routes.size());
    for (HMSCatalogAdapter.Route route : routes) {
      metricNames.add(hmsCatalogMetricCount(route.name()));
    }
    return metricNames;
  }
@param apis an optional list of known api call names
@return the list of metric names for the HMSCatalog class
standalone-metastore/metastore-rest-catalog/src/main/java/org/apache/iceberg/rest/HMSCatalogAdapter.java