ExponentialHistogram constructor

ExponentialHistogram({
  1. Iterable<ExponentialHistogramDataPoint>? dataPoints,
  2. AggregationTemporality? aggregationTemporality,
})

Implementation

factory ExponentialHistogram({
  $core.Iterable<ExponentialHistogramDataPoint>? dataPoints,
  AggregationTemporality? aggregationTemporality,
}) {
  final result = create();
  if (dataPoints != null) result.dataPoints.addAll(dataPoints);
  if (aggregationTemporality != null)
    result.aggregationTemporality = aggregationTemporality;
  return result;
}