blob: a19b969ab3baeeb2b9d2806cb490740c95cb0e25 [file] [log] [blame]
James Feist8fd8a582018-11-16 11:10:46 -08001#pragma once
2
3#include <Thresholds.hpp>
4#include <sdbusplus/asio/object_server.hpp>
5
James Feist1169eb42018-10-31 10:08:47 -07006constexpr size_t sensorFailedPollTimeMs = 5000;
James Feist8fd8a582018-11-16 11:10:46 -08007struct 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};