code: public void submitMetrics(MetricsRecord metricsRecord) {
      List<PoolMetadata> poolMetadatas = getPoolMetadataList();
      PoolFairnessCalculator.calculateFairness(poolMetadatas, metricsRecord);
      for (SchedulerForType scheduler: schedulersForTypes.values()) {
        scheduler.submitMetrics();
      }
    }
docs: Submit the metrics.
  
  @param metricsRecord Where the metrics will be submitted