Lines Matching full:level

215     /** @brief Get threshold given level and direction
217 * @param[in] level - The threshold level (WARNING/CRITICAL/etc)
222 double getThreshold(pldm::utils::Level level, in getThreshold() argument
230 switch (level) in getThreshold()
232 case pldm::utils::Level::WARNING: in getThreshold()
236 case pldm::utils::Level::CRITICAL: in getThreshold()
240 case pldm::utils::Level::HARDSHUTDOWN: in getThreshold()
250 /* @brief returns true if the given threshold at level/direction is defined.
252 * @param[in] level - The threshold level (WARNING/CRITICAL/etc)
257 bool isThresholdValid(pldm::utils::Level level, in isThresholdValid() argument
260 return std::isfinite(getThreshold(level, direction)); in isThresholdValid()
265 * @param[in] level - The threshold level (WARNING/CRITICAL/etc)
270 bool getThresholdAlarm(pldm::utils::Level level, in getThresholdAlarm() argument
273 if (!isThresholdValid(level, direction)) in getThresholdAlarm()
277 switch (level) in getThresholdAlarm()
279 case pldm::utils::Level::WARNING: in getThresholdAlarm()
283 case pldm::utils::Level::CRITICAL: in getThresholdAlarm()
287 case pldm::utils::Level::HARDSHUTDOWN: in getThresholdAlarm()
341 * @param[in] level - The threshold level (WARNING/CRITICAL/etc)
349 int setThresholdAlarm(pldm::utils::Level level,
355 * @param[in] eventType - event level in pldm::utils::Level
363 int triggerThresholdEvent(pldm::utils::Level eventType,
405 * @brief Create a threshold log for the given level/direction tuple.
407 * @param[in] level - The level of the threshold.
411 void createThresholdLog(pldm::utils::Level level,
468 std::map<std::tuple<pldm::utils::Level, pldm::utils::Direction>,