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