ScopeMetrics constructor
ScopeMetrics({
- InstrumentationScope? scope,
- Iterable<
Metric> ? metrics, - 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;
}