Krzysztof Grobelny | c8e3a64 | 2020-10-23 12:29:16 +0200 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "metric_value.hpp" |
| 4 | |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 5 | #include <nlohmann/json.hpp> |
| 6 | |
Krzysztof Grobelny | c8e3a64 | 2020-10-23 12:29:16 +0200 | [diff] [blame] | 7 | #include <vector> |
| 8 | |
| 9 | namespace interfaces |
| 10 | { |
| 11 | |
| 12 | class Metric |
| 13 | { |
| 14 | public: |
| 15 | virtual ~Metric() = default; |
| 16 | |
Krzysztof Grobelny | 6ccfcbf | 2020-11-04 09:31:36 +0100 | [diff] [blame] | 17 | virtual void initialize() = 0; |
Krzysztof Grobelny | c8e3a64 | 2020-10-23 12:29:16 +0200 | [diff] [blame] | 18 | virtual const std::vector<MetricValue>& getReadings() const = 0; |
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 19 | virtual nlohmann::json to_json() const = 0; |
Krzysztof Grobelny | c8e3a64 | 2020-10-23 12:29:16 +0200 | [diff] [blame] | 20 | }; |
| 21 | |
| 22 | } // namespace interfaces |