xref: /openbmc/telemetry/src/metric_value.hpp (revision 18e7101cf3283c32fa52ed8b00697e1e1f59015a)
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