Krzysztof Grobelny | c8e3a64 | 2020-10-23 12:29:16 +0200 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <cstdint> |
| 4 | #include <string> |
| 5 | |
| 6 | struct MetricValue |
| 7 | { |
| 8 | std::string id; |
| 9 | std::string metadata; |
| 10 | double value; |
| 11 | uint64_t timestamp; |
Szymon Dompke | bcf045a | 2022-09-16 15:23:30 +0200 | [diff] [blame] | 12 | |
| 13 | MetricValue(std::string_view idIn, std::string_view metadataIn, |
| 14 | double valueIn, uint64_t timestampIn) : |
| 15 | id(idIn), |
| 16 | metadata(metadataIn), value(valueIn), timestamp(timestampIn) |
| 17 | {} |
Krzysztof Grobelny | c8e3a64 | 2020-10-23 12:29:16 +0200 | [diff] [blame] | 18 | }; |