Lines Matching full:bound
110 using bound_map_t = std::map<Bound, double>; in initProperties()
115 auto bound = std::get<Bound>(key); in initProperties() local
120 bounds.emplace(bound, std::numeric_limits<double>::quiet_NaN()); in initProperties()
125 threshold->second.emplace(bound, value.value); in initProperties()
131 bool didThresholdViolate(ThresholdIntf::Bound bound, double thresholdValue, in didThresholdViolate() argument
134 switch (bound) in didThresholdViolate()
136 case ThresholdIntf::Bound::Lower: in didThresholdViolate()
140 case ThresholdIntf::Bound::Upper: in didThresholdViolate()
146 error("Invalid threshold bound {BOUND}", "BOUND", bound); in didThresholdViolate()
152 void HealthMetric::checkThreshold(Type type, Bound bound, MValue value) in checkThreshold() argument
154 auto threshold = std::make_tuple(type, bound); in checkThreshold()
157 if (thresholds.contains(type) && thresholds[type].contains(bound)) in checkThreshold()
161 thresholds[type][bound] = thresholdValue; in checkThreshold()
164 if (didThresholdViolate(bound, thresholdValue, value.current)) in checkThreshold()
170 ThresholdIntf::assertionChanged(type, bound, true, in checkThreshold()
186 ThresholdIntf::assertionChanged(type, bound, false, value.current); in checkThreshold()
204 checkThreshold(type, Bound::Lower, value); in checkThresholds()
205 checkThreshold(type, Bound::Upper, value); in checkThresholds()