James Feist | 8fd8a58 | 2018-11-16 11:10:46 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <Thresholds.hpp> |
| 4 | #include <sdbusplus/asio/object_server.hpp> |
| 5 | |
James Feist | 1169eb4 | 2018-10-31 10:08:47 -0700 | [diff] [blame^] | 6 | constexpr size_t sensorFailedPollTimeMs = 5000; |
James Feist | 8fd8a58 | 2018-11-16 11:10:46 -0800 | [diff] [blame] | 7 | struct Sensor |
| 8 | { |
| 9 | virtual ~Sensor() = default; |
| 10 | std::vector<thresholds::Threshold> thresholds; |
| 11 | std::shared_ptr<sdbusplus::asio::dbus_interface> sensorInterface; |
| 12 | std::shared_ptr<sdbusplus::asio::dbus_interface> thresholdInterfaceWarning; |
| 13 | std::shared_ptr<sdbusplus::asio::dbus_interface> thresholdInterfaceCritical; |
| 14 | double value = std::numeric_limits<double>::quiet_NaN(); |
| 15 | }; |