xref: /openbmc/telemetry/src/metric_value.hpp (revision 89cf7d7dafe2c073d781a40d59fa9c46cb344be6)
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;
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     {}
18 };
19