Lines Matching refs:metric

72         const ConfigKey& key, const GaugeMetric& metric, const int conditionIndex,  in GaugeMetricProducer()  argument
77 : MetricProducer(metric.id(), key, timeBaseNs, conditionIndex, wizard), in GaugeMetricProducer()
85 mMinBucketSizeNs(metric.min_bucket_size_nanos()), in GaugeMetricProducer()
86 mMaxPullDelayNs(metric.max_pull_delay_sec() > 0 ? metric.max_pull_delay_sec() * NS_PER_SEC in GaugeMetricProducer()
96 mGaugeAtomsPerDimensionLimit(metric.max_num_gauge_atoms_per_bucket()), in GaugeMetricProducer()
97 mSplitBucketForAppUpgrade(metric.split_bucket_for_app_upgrade()) { in GaugeMetricProducer()
101 if (metric.has_bucket()) { in GaugeMetricProducer()
102 bucketSizeMills = TimeUnitToBucketSizeInMillisGuardrailed(key.GetUid(), metric.bucket()); in GaugeMetricProducer()
108 mSamplingType = metric.sampling_type(); in GaugeMetricProducer()
109 if (!metric.gauge_fields_filter().include_all()) { in GaugeMetricProducer()
110 translateFieldMatcher(metric.gauge_fields_filter().fields(), &mFieldMatchers); in GaugeMetricProducer()
113 if (metric.has_dimensions_in_what()) { in GaugeMetricProducer()
114 translateFieldMatcher(metric.dimensions_in_what(), &mDimensionsInWhat); in GaugeMetricProducer()
115 mContainANYPositionInDimensionsInWhat = HasPositionANY(metric.dimensions_in_what()); in GaugeMetricProducer()
118 if (metric.has_dimensions_in_condition()) { in GaugeMetricProducer()
119 translateFieldMatcher(metric.dimensions_in_condition(), &mDimensionsInCondition); in GaugeMetricProducer()
122 if (metric.links().size() > 0) { in GaugeMetricProducer()
123 for (const auto& link : metric.links()) { in GaugeMetricProducer()
131 mConditionSliced = (metric.links().size() > 0) || (mDimensionsInCondition.size() > 0); in GaugeMetricProducer()
132 mSliceByPositionALL = HasPositionALL(metric.dimensions_in_what()) || in GaugeMetricProducer()
133 HasPositionALL(metric.dimensions_in_condition()); in GaugeMetricProducer()
146 (long long)metric.id(), (long long)mBucketSizeNs, (long long)mTimeBaseNs, in GaugeMetricProducer()