blob: a19b969ab3baeeb2b9d2806cb490740c95cb0e25 [file] [log] [blame]
James Feistaf79dd32018-09-12 12:54:15 -07001#pragma once
2
3#include <Thresholds.hpp>
4#include <sdbusplus/asio/object_server.hpp>
5
James Feist3452f0e2018-10-31 10:08:47 -07006constexpr size_t sensorFailedPollTimeMs = 5000;
James Feistaf79dd32018-09-12 12:54:15 -07007struct 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};