Krzysztof Grobelny | 9f9ff90 | 2021-03-05 14:57:53 +0000 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "operation_type.hpp" |
| 4 | #include "utils/labeled_tuple.hpp" |
| 5 | #include "utils/tstring.hpp" |
| 6 | |
| 7 | #include <sdbusplus/message/types.hpp> |
| 8 | |
| 9 | #include <string> |
| 10 | #include <tuple> |
| 11 | #include <type_traits> |
| 12 | #include <vector> |
| 13 | |
| 14 | using ReadingParameters = |
| 15 | std::vector<std::tuple<sdbusplus::message::object_path, std::string, |
| 16 | std::string, std::string>>; |
| 17 | |
| 18 | using LabeledSensorParameters = |
| 19 | utils::LabeledTuple<std::tuple<std::string, std::string>, |
| 20 | utils::tstring::Service, utils::tstring::Path>; |
| 21 | |
| 22 | using LabeledMetricParameters = |
| 23 | utils::LabeledTuple<std::tuple<LabeledSensorParameters, OperationType, |
| 24 | std::string, std::string>, |
| 25 | utils::tstring::SensorPath, |
| 26 | utils::tstring::OperationType, utils::tstring::Id, |
| 27 | utils::tstring::MetricMetadata>; |
| 28 | |
| 29 | using Readings = std::tuple< |
| 30 | uint64_t, |
| 31 | std::vector<std::tuple<std::string, std::string, double, uint64_t>>>; |