Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 3 | #include "interfaces/json_storage.hpp" |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 4 | #include "interfaces/report.hpp" |
| 5 | #include "interfaces/report_manager.hpp" |
Krzysztof Grobelny | dcc4e19 | 2021-03-08 09:09:34 +0000 | [diff] [blame] | 6 | #include "types/report_types.hpp" |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 7 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 8 | #include <boost/asio/spawn.hpp> |
| 9 | |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 10 | #include <chrono> |
| 11 | #include <memory> |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 12 | #include <optional> |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 13 | |
| 14 | namespace interfaces |
| 15 | { |
| 16 | |
| 17 | class ReportFactory |
| 18 | { |
| 19 | public: |
| 20 | virtual ~ReportFactory() = default; |
| 21 | |
Krzysztof Grobelny | dcc4e19 | 2021-03-08 09:09:34 +0000 | [diff] [blame] | 22 | virtual std::vector<LabeledMetricParameters> |
| 23 | convertMetricParams(boost::asio::yield_context& yield, |
| 24 | const ReadingParameters& metricParams) const = 0; |
| 25 | |
Lukasz Kazmierczak | 7e098e9 | 2021-09-16 15:59:56 +0200 | [diff] [blame^] | 26 | virtual std::unique_ptr<interfaces::Report> |
| 27 | make(const std::string& name, const std::string& reportingType, |
| 28 | bool emitsReadingsSignal, bool logToMetricReportsCollection, |
| 29 | Milliseconds period, ReportManager& reportManager, |
| 30 | JsonStorage& reportStorage, |
| 31 | std::vector<LabeledMetricParameters> labeledMetricParams, |
| 32 | bool enabled) const = 0; |
Wludzik, Jozef | 2f9f9b8 | 2020-10-13 09:07:45 +0200 | [diff] [blame] | 33 | }; |
| 34 | |
| 35 | } // namespace interfaces |