MetricValue constructor

MetricValue({
  1. Iterable<MapEntry<String, String>>? labels,
  2. Timestamp? startTime,
  3. Timestamp? endTime,
  4. bool? boolValue,
  5. Int64? int64Value,
  6. double? doubleValue,
  7. String? stringValue,
  8. Distribution? distributionValue,
})

Implementation

factory MetricValue({
  $core.Iterable<$core.MapEntry<$core.String, $core.String>>? labels,
  $0.Timestamp? startTime,
  $0.Timestamp? endTime,
  $core.bool? boolValue,
  $fixnum.Int64? int64Value,
  $core.double? doubleValue,
  $core.String? stringValue,
  $1.Distribution? distributionValue,
}) {
  final result = create();
  if (labels != null) result.labels.addEntries(labels);
  if (startTime != null) result.startTime = startTime;
  if (endTime != null) result.endTime = endTime;
  if (boolValue != null) result.boolValue = boolValue;
  if (int64Value != null) result.int64Value = int64Value;
  if (doubleValue != null) result.doubleValue = doubleValue;
  if (stringValue != null) result.stringValue = stringValue;
  if (distributionValue != null) result.distributionValue = distributionValue;
  return result;
}