ScopeMetrics constructor

ScopeMetrics({
  1. InstrumentationScope? scope,
  2. Iterable<Metric>? metrics,
  3. String? schemaUrl,
})

Implementation

factory ScopeMetrics({
  $3.InstrumentationScope? scope,
  $core.Iterable<Metric>? metrics,
  $core.String? schemaUrl,
}) {
  final $result = create();
  if (scope != null) {
    $result.scope = scope;
  }
  if (metrics != null) {
    $result.metrics.addAll(metrics);
  }
  if (schemaUrl != null) {
    $result.schemaUrl = schemaUrl;
  }
  return $result;
}