Lines Matching refs:metric
68 CountMetricProducer::CountMetricProducer(const ConfigKey& key, const CountMetric& metric, in CountMetricProducer() argument
72 : MetricProducer(metric.id(), key, timeBaseNs, conditionIndex, wizard) { in CountMetricProducer()
73 if (metric.has_bucket()) { in CountMetricProducer()
75 TimeUnitToBucketSizeInMillisGuardrailed(key.GetUid(), metric.bucket()) * 1000000; in CountMetricProducer()
80 if (metric.has_dimensions_in_what()) { in CountMetricProducer()
81 translateFieldMatcher(metric.dimensions_in_what(), &mDimensionsInWhat); in CountMetricProducer()
82 mContainANYPositionInDimensionsInWhat = HasPositionANY(metric.dimensions_in_what()); in CountMetricProducer()
85 mSliceByPositionALL = HasPositionALL(metric.dimensions_in_what()) || in CountMetricProducer()
86 HasPositionALL(metric.dimensions_in_condition()); in CountMetricProducer()
88 if (metric.has_dimensions_in_condition()) { in CountMetricProducer()
89 translateFieldMatcher(metric.dimensions_in_condition(), &mDimensionsInCondition); in CountMetricProducer()
92 if (metric.links().size() > 0) { in CountMetricProducer()
93 for (const auto& link : metric.links()) { in CountMetricProducer()
103 mConditionSliced = (metric.links().size() > 0) || (mDimensionsInCondition.size() > 0); in CountMetricProducer()
109 VLOG("metric %lld created. bucket size %lld start_time: %lld", (long long)metric.id(), in CountMetricProducer()