code: public static Metric createWithOneTimeSeries(
        MetricDescriptor metricDescriptor, TimeSeries timeSeries) {
      return createInternal(
          metricDescriptor, Collections.singletonList(Utils.checkNotNull(timeSeries, "timeSeries")));
    }
docs: Creates a {@link Metric}.
  
  @param metricDescriptor the {@link MetricDescriptor}.
  @param timeSeries the single {@link TimeSeries} for this metric.
  @return a {@code Metric}.
  @since 0.17