blob: a5ed0db025ea3085c48edc2600447333707e5fbb [file] [log] [blame]
Wludzik, Jozef2f9f9b82020-10-13 09:07:45 +02001#pragma once
2
Krzysztof Grobelnye8fc5752021-02-05 14:30:45 +00003#include "operation_type.hpp"
Wludzik, Jozefe2362792020-10-27 17:23:55 +01004#include "utils/labeled_tuple.hpp"
5#include "utils/tstring.hpp"
6
Wludzik, Jozef2f9f9b82020-10-13 09:07:45 +02007#include <sdbusplus/message/types.hpp>
8
9#include <string>
10#include <tuple>
Wludzik, Jozef1477fe62021-01-02 11:56:10 +010011#include <type_traits>
Wludzik, Jozef2f9f9b82020-10-13 09:07:45 +020012#include <vector>
13
14using ReadingParameters =
Krzysztof Grobelnye8fc5752021-02-05 14:30:45 +000015 std::vector<std::tuple<sdbusplus::message::object_path, std::string,
16 std::string, std::string>>;
Krzysztof Grobelnyc8e3a642020-10-23 12:29:16 +020017
Krzysztof Grobelnyd2238192020-12-02 09:27:28 +000018using LabeledSensorParameters =
19 utils::LabeledTuple<std::tuple<std::string, std::string>,
20 utils::tstring::Service, utils::tstring::Path>;
21
22using LabeledMetricParameters =
Krzysztof Grobelnye8fc5752021-02-05 14:30:45 +000023 utils::LabeledTuple<std::tuple<LabeledSensorParameters, OperationType,
24 std::string, std::string>,
25 utils::tstring::SensorPath,
Wludzik, Jozefe2362792020-10-27 17:23:55 +010026 utils::tstring::OperationType, utils::tstring::Id,
27 utils::tstring::MetricMetadata>;
28
Krzysztof Grobelnyc8e3a642020-10-23 12:29:16 +020029using Readings = std::tuple<
30 uint64_t,
31 std::vector<std::tuple<std::string, std::string, double, uint64_t>>>;