| 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 |  | 
|  | 17 | virtual const std::vector<MetricValue>& getReadings() const = 0; | 
| Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame^] | 18 | virtual nlohmann::json to_json() const = 0; | 
| Krzysztof Grobelny | c8e3a64 | 2020-10-23 12:29:16 +0200 | [diff] [blame] | 19 | }; | 
|  | 20 |  | 
|  | 21 | } // namespace interfaces |