summaryrefslogtreecommitdiffstats
path: root/monitor/types.hpp
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2017-04-27 12:35:23 -0500
committerMatt Spinler <spinler@us.ibm.com>2017-05-11 13:52:49 -0500
commit35b156b79c1314de79e4728ef313f5164ae2ec32 (patch)
tree6603ba2412a514c138f6c728973fc3f2e55a1764 /monitor/types.hpp
parente567dd24a8d943b4655ed2db74ce3639b05652bc (diff)
downloadphosphor-fan-presence-35b156b79c1314de79e4728ef313f5164ae2ec32.tar.gz
phosphor-fan-presence-35b156b79c1314de79e4728ef313f5164ae2ec32.zip
Fan monitor data
This commit contains the data that will be used by the monitor code. The generated.cpp file will later be generated during the build by a python script. Change-Id: I4dc4552ae8e58cd27478416888dd3363e7c2bf3f Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'monitor/types.hpp')
-rw-r--r--monitor/types.hpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/monitor/types.hpp b/monitor/types.hpp
new file mode 100644
index 0000000..dbdebd9
--- /dev/null
+++ b/monitor/types.hpp
@@ -0,0 +1,33 @@
+#pragma once
+
+#include <string>
+#include <tuple>
+#include <vector>
+
+namespace phosphor
+{
+namespace fan
+{
+namespace monitor
+{
+
+constexpr auto sensorNameField = 0;
+constexpr auto hasTargetField = 1;
+
+using SensorDefinition = std::tuple<std::string, bool>;
+
+constexpr auto fanNameField = 0;
+constexpr auto timeoutField = 1;
+constexpr auto fanDeviationField = 2;
+constexpr auto numSensorFailsForNonfuncField = 3;
+constexpr auto sensorListField = 4;
+
+using FanDefinition = std::tuple<std::string,
+ size_t,
+ size_t,
+ size_t,
+ std::vector<SensorDefinition>>;
+
+}
+}
+}
OpenPOWER on IntegriCloud