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