code: public <T> void addMetric(String name, MetricTimeslice<T> timeslice)
      {
          metrics.put(name, timeslice);
      }
docs: Adds a metric to the set of metrics.
  @param <T> The type parameter used for the timeslice
  @param name The name of the metric
  @param timeslice The values representing the metric timeslice