summaryrefslogtreecommitdiffstats
path: root/monitor/types.hpp
blob: dbdebd900e9b84050c28106f7bd15a688b2f5b94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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