ExponentialHistogramDataPoint constructor

ExponentialHistogramDataPoint({
  1. Iterable<KeyValue>? attributes,
  2. Int64? startTimeUnixNano,
  3. Int64? timeUnixNano,
  4. Int64? count,
  5. double? sum,
  6. int? scale,
  7. Int64? zeroCount,
  8. ExponentialHistogramDataPoint_Buckets? positive,
  9. ExponentialHistogramDataPoint_Buckets? negative,
  10. int? flags,
  11. Iterable<Exemplar>? exemplars,
  12. double? min,
  13. double? max,
  14. double? zeroThreshold,
})

Implementation

factory ExponentialHistogramDataPoint({
  $core.Iterable<$3.KeyValue>? attributes,
  $fixnum.Int64? startTimeUnixNano,
  $fixnum.Int64? timeUnixNano,
  $fixnum.Int64? count,
  $core.double? sum,
  $core.int? scale,
  $fixnum.Int64? zeroCount,
  ExponentialHistogramDataPoint_Buckets? positive,
  ExponentialHistogramDataPoint_Buckets? negative,
  $core.int? flags,
  $core.Iterable<Exemplar>? exemplars,
  $core.double? min,
  $core.double? max,
  $core.double? zeroThreshold,
}) {
  final $result = create();
  if (attributes != null) {
    $result.attributes.addAll(attributes);
  }
  if (startTimeUnixNano != null) {
    $result.startTimeUnixNano = startTimeUnixNano;
  }
  if (timeUnixNano != null) {
    $result.timeUnixNano = timeUnixNano;
  }
  if (count != null) {
    $result.count = count;
  }
  if (sum != null) {
    $result.sum = sum;
  }
  if (scale != null) {
    $result.scale = scale;
  }
  if (zeroCount != null) {
    $result.zeroCount = zeroCount;
  }
  if (positive != null) {
    $result.positive = positive;
  }
  if (negative != null) {
    $result.negative = negative;
  }
  if (flags != null) {
    $result.flags = flags;
  }
  if (exemplars != null) {
    $result.exemplars.addAll(exemplars);
  }
  if (min != null) {
    $result.min = min;
  }
  if (max != null) {
    $result.max = max;
  }
  if (zeroThreshold != null) {
    $result.zeroThreshold = zeroThreshold;
  }
  return $result;
}