xref: /openbmc/telemetry/src/metric_value.hpp (revision f535cad6)
1c8e3a64aSKrzysztof Grobelny #pragma once
2c8e3a64aSKrzysztof Grobelny 
3c8e3a64aSKrzysztof Grobelny #include <cstdint>
4c8e3a64aSKrzysztof Grobelny #include <string>
5c8e3a64aSKrzysztof Grobelny 
6c8e3a64aSKrzysztof Grobelny struct MetricValue
7c8e3a64aSKrzysztof Grobelny {
8c8e3a64aSKrzysztof Grobelny     std::string metadata;
9c8e3a64aSKrzysztof Grobelny     double value;
10c8e3a64aSKrzysztof Grobelny     uint64_t timestamp;
11bcf045a4SSzymon Dompke 
MetricValueMetricValue12cff70c14SKrzysztof Grobelny     MetricValue(std::string_view metadataIn, double valueIn,
13cff70c14SKrzysztof Grobelny                 uint64_t timestampIn) :
14*f535cad6SPatrick Williams         metadata(metadataIn), value(valueIn), timestamp(timestampIn)
15bcf045a4SSzymon Dompke     {}
16c8e3a64aSKrzysztof Grobelny };
17