| /openbmc/dbus-sensors/src/nvidia-gpu/ |
| H A D | NvidiaGpuDevice.cpp | 72 objectServer, std::vector<thresholds::Threshold>{}); in makeSensors() 77 std::vector<thresholds::Threshold>{thresholds::Threshold{ in makeSensors() 78 thresholds::Level::CRITICAL, thresholds::Direction::HIGH, 95.0}}); in makeSensors() 82 objectServer, std::vector<thresholds::Threshold>{}); in makeSensors() 90 objectServer, std::vector<thresholds::Threshold>{}); in makeSensors() 94 objectServer, std::vector<thresholds::Threshold>{}); in makeSensors() 105 thresholds = {}; in getTLimitThresholds() 138 thresholds[current_threshold_index] = threshold; in readThermalParameterCallback() 181 std::vector<thresholds::Threshold> tLimitThresholds{}; in processTLimitThresholds() 185 thresholds::Threshold{thresholds::Level::WARNING, in processTLimitThresholds() [all …]
|
| H A D | NvidiaGpuVoltageSensor.cpp | 45 std::vector<thresholds::Threshold>&& thresholdData) : in NvidiaGpuVoltageSensor() 57 for (const auto& threshold : thresholds) 59 std::string interface = thresholds::getInterface(threshold.level); 81 thresholds::checkThresholds(this); in checkThresholds()
|
| H A D | NvidiaGpuEnergySensor.cpp | 45 std::vector<thresholds::Threshold>&& thresholdData) : in NvidiaGpuEnergySensor() 57 for (const auto& threshold : thresholds) 59 std::string interface = thresholds::getInterface(threshold.level); 81 thresholds::checkThresholds(this); in checkThresholds()
|
| H A D | NvidiaGpuSensor.cpp | 43 std::vector<thresholds::Threshold>&& thresholdData) : in NvidiaGpuTempSensor() 56 for (const auto& threshold : thresholds) 58 std::string interface = thresholds::getInterface(threshold.level); 104 thresholds::checkThresholds(this); in checkThresholds()
|
| H A D | NvidiaGpuPowerSensor.cpp | 45 std::vector<thresholds::Threshold>&& thresholdData) : in NvidiaGpuPowerSensor() 59 for (const auto& threshold : thresholds) 61 std::string interface = thresholds::getInterface(threshold.level); 83 thresholds::checkThresholds(this); in checkThresholds()
|
| /openbmc/dbus-sensors/src/ |
| H A D | sensor.hpp | 71 std::vector<thresholds::Threshold>&& thresholdData, in Sensor() 80 minValue(min), thresholds(std::move(thresholdData)), in Sensor() 108 std::vector<thresholds::Threshold> thresholds; member 131 using Level = thresholds::Level; 132 using Direction = thresholds::Direction; 135 thresholds::thresProp.size()> 291 for (auto& threshold : thresholds) in setInitialProperties() 317 label.empty() ? thresholds.size() : thresholdSize; in setInitialProperties() 323 thresholds::persistThreshold( in setInitialProperties() 404 for (const thresholds::ThresholdDefinition& prop : in propertyLevel() [all …]
|
| H A D | Thresholds.hpp | 20 namespace thresholds namespace 60 thresholds::Level level, thresholds::Direction direction, 123 std::vector<thresholds::Threshold>& thresholdVector, 131 std::vector<thresholds::Threshold>& thresholdVector, 143 constexpr static std::array<thresholds::ThresholdDefinition, 5> thresProp = { 153 const thresholds::Threshold& threshold,
|
| H A D | Thresholds.cpp | 29 namespace thresholds namespace 58 std::vector<thresholds::Threshold>& thresholdVector, in parseThresholdsFromConfig() 139 const thresholds::Threshold& threshold, in persistThreshold() 212 for (const auto& threshold : sensor->thresholds) in updateThresholds() 256 if (sensor->thresholds.empty()) in checkThresholds() 261 for (auto& threshold : sensor->thresholds) in checkThresholds() 268 if (threshold.direction == thresholds::Direction::HIGH) in checkThresholds() 292 else if (threshold.direction == thresholds::Direction::LOW) in checkThresholds() 400 if (change.threshold.level == thresholds::Level::CRITICAL && in checkThresholds() 434 if (change.threshold.direction == thresholds::Direction::LOW) in checkThresholdsPowerDelay() [all …]
|
| /openbmc/phosphor-health-monitor/ |
| H A D | health_metric.cpp | 111 std::map<Type, bound_map_t> thresholds; in initProperties() local 112 for (const auto& [key, value] : config.thresholds) in initProperties() 116 auto threshold = thresholds.find(type); in initProperties() 117 if (threshold == thresholds.end()) in initProperties() 121 thresholds.emplace(type, bounds); in initProperties() 128 ThresholdIntf::value(thresholds, true); in initProperties() 155 auto thresholds = ThresholdIntf::value(); in checkThreshold() local 157 if (thresholds.contains(type) && thresholds[type].contains(bound)) in checkThreshold() 159 auto tConfig = config.thresholds.at(threshold); in checkThreshold() 161 thresholds[type][bound] = thresholdValue; in checkThreshold() [all …]
|
| H A D | health_metric_config.cpp | 82 auto thresholds = j.find("Threshold"); in from_json() local 83 if (thresholds == j.end()) in from_json() 88 for (auto& [key, value] : thresholds->items()) in from_json() 107 self.thresholds.emplace( in from_json() 148 for (auto& [key, threshold] : config.thresholds) in printConfig()
|
| /openbmc/dbus-sensors/src/intel-cpu/ |
| H A D | IntelCPUSensor.cpp | 54 std::vector<thresholds::Threshold>&& thresholdsIn, in IntelCPUSensor() 89 for (const auto& threshold : thresholds) in IntelCPUSensor() 92 thresholds::getInterface(threshold.level); in IntelCPUSensor() 305 if (!thresholds.empty()) in handleResponse() 307 std::vector<thresholds::Threshold> newThresholds; in handleResponse() 312 if (!std::equal(thresholds.begin(), thresholds.end(), in handleResponse() 316 thresholds = newThresholds; in handleResponse() 319 thresholds::updateThresholds(this); in handleResponse() 348 thresholds::checkThresholds(this); in checkThresholds()
|
| /openbmc/dbus-sensors/src/nvme/ |
| H A D | NVMeSensor.cpp | 43 std::vector<thresholds::Threshold>&& thresholdsIn, in NVMeSensor() 60 for (const auto& threshold : thresholds) in NVMeSensor() 62 std::string interface = thresholds::getInterface(threshold.level); in NVMeSensor() 108 thresholds::checkThresholds(this); in checkThresholds()
|
| H A D | NVMeSensor.hpp | 24 std::vector<thresholds::Threshold>&& thresholds,
|
| /openbmc/dbus-sensors/src/adc/ |
| H A D | ADCSensor.hpp | 79 std::vector<thresholds::Threshold>&& thresholds, 95 thresholds::ThresholdTimer thresholdTimer;
|
| H A D | ADCSensor.cpp | 57 std::vector<thresholds::Threshold>&& thresholdsIn, const double scaleFactor, in ADCSensor() 81 for (const auto& threshold : thresholds) in ADCSensor() 83 std::string interface = thresholds::getInterface(threshold.level); in ADCSensor() 261 thresholds::checkThresholdsPowerDelay(weak_from_this(), thresholdTimer); in checkThresholds()
|
| /openbmc/telemetry/src/ |
| H A D | trigger_factory.cpp | 153 std::vector<std::shared_ptr<interfaces::Threshold>>& thresholds, in makeDiscreteThreshold() argument 171 thresholds.emplace_back(std::make_shared<DiscreteThreshold>( in makeDiscreteThreshold() 178 std::vector<std::shared_ptr<interfaces::Threshold>>& thresholds, in makeNumericThreshold() argument 195 thresholds.emplace_back(std::make_shared<NumericThreshold>( in makeNumericThreshold() 201 std::vector<std::shared_ptr<interfaces::Threshold>>& thresholds, in makeOnChangeThreshold() argument 212 thresholds.emplace_back(std::make_shared<OnChangeThreshold>( in makeOnChangeThreshold() 230 std::vector<std::shared_ptr<interfaces::Threshold>> thresholds; in make() local 235 updateThresholds(thresholds, *id, triggerActions, reportIds, sensors, in make() 240 reportIds, std::move(thresholds), triggerManager, triggerStorage, *this, in make()
|
| H A D | trigger.cpp | 28 reportIds(std::move(reportIdsIn)), thresholds(std::move(thresholdsIn)), in Trigger() 82 thresholds, *id, triggerActions, reportIds, sensors, in __anon5e4599b80402() 111 thresholds, *id, triggerActions, reportIds, sensors, in __anon5e4599b80402() 136 for (const auto& threshold : thresholds) in __anon5e4599b80402() 198 for (const auto& threshold : thresholds) 259 return utils::transform(thresholds, [](const auto& threshold) { in getLabeledThresholds()
|
| /openbmc/dbus-sensors/src/psu/ |
| H A D | PSUSensor.cpp | 50 std::vector<thresholds::Threshold>&& thresholdsIn, in PSUSensor() 81 for (const auto& threshold : thresholds) in PSUSensor() 83 std::string interface = thresholds::getInterface(threshold.level); in PSUSensor() 91 if (label.empty() || tSize == thresholds.size()) in PSUSensor() 251 thresholds::checkThresholdsPowerDelay(weak_from_this(), thresholdTimer); in checkThresholds()
|
| H A D | PSUSensor.hpp | 28 std::vector<thresholds::Threshold>&& thresholds, 58 thresholds::ThresholdTimer thresholdTimer;
|
| /openbmc/dbus-sensors/src/external/ |
| H A D | ExternalSensor.cpp | 27 std::vector<thresholds::Threshold>&& thresholdsIn, in ExternalSensor() 54 for (const auto& threshold : thresholds) in ExternalSensor() 56 std::string interface = thresholds::getInterface(threshold.level); in ExternalSensor() 113 thresholds::checkThresholds(this); in checkThresholds()
|
| /openbmc/dbus-sensors/src/hwmon-temp/ |
| H A D | HwmonTempSensor.cpp | 57 std::vector<thresholds::Threshold>&& thresholdsIn, in HwmonTempSensor() 76 for (const auto& threshold : thresholds) in HwmonTempSensor() 78 std::string interface = thresholds::getInterface(threshold.level); in HwmonTempSensor() 210 thresholds::checkThresholds(this); in checkThresholds()
|
| H A D | HwmonTempSensor.hpp | 39 std::vector<thresholds::Threshold>&& thresholds,
|
| /openbmc/dbus-sensors/src/mcu/ |
| H A D | MCUTempSensor.cpp | 67 std::vector<thresholds::Threshold>&& thresholdData, uint8_t busId, in MCUTempSensor() 79 for (const auto& threshold : thresholds) in MCUTempSensor() 81 std::string interface = thresholds::getInterface(threshold.level); in MCUTempSensor() 110 thresholds::checkThresholds(this); in checkThresholds() 226 std::vector<thresholds::Threshold> sensorThresholds; in createSensors()
|
| /openbmc/s2600wf-misc/subprojects/callback-manager/ |
| H A D | README.md | 30 1. Monitoring critical / warning thresholds as Redfish does. 38 Warning thresholds will trigger warning (blink green) LED state. 40 Critical thresholds will trigger critical (blink amber) state. 42 Callback manager will create associations for redfish for thresholds
|
| /openbmc/s2600wf-misc/callback-manager/ |
| H A D | README.md | 30 1. Monitoring critical / warning thresholds as Redfish does. 38 Warning thresholds will trigger warning (blink green) LED state. 40 Critical thresholds will trigger critical (blink amber) state. 42 Callback manager will create associations for redfish for thresholds
|