xref: /openbmc/telemetry/src/metric_value.hpp (revision cff70c14)
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 
12     MetricValue(std::string_view metadataIn, double valueIn,
13                 uint64_t timestampIn) :
14         metadata(metadataIn),
15         value(valueIn), timestamp(timestampIn)
16     {}
17 };
18