MetricRule constructor

MetricRule({
  1. String? selector,
  2. Map<String, Int64>? metricCosts,
})

Implementation

factory MetricRule({
  $core.String? selector,
  $core.Map<$core.String, $fixnum.Int64>? metricCosts,
}) {
  final _result = create();
  if (selector != null) {
    _result.selector = selector;
  }
  if (metricCosts != null) {
    _result.metricCosts.addAll(metricCosts);
  }
  return _result;
}