metric_value.hpp (bcf045a471227c72b636b526e70d6df36f1a3395) metric_value.hpp (cff70c14ef8cadb7fffd0cd41e06b972fa240e56)
1#pragma once
2
3#include <cstdint>
4#include <string>
5
6struct MetricValue
7{
1#pragma once
2
3#include <cstdint>
4#include <string>
5
6struct MetricValue
7{
8 std::string id;
9 std::string metadata;
10 double value;
11 uint64_t timestamp;
12
8 std::string metadata;
9 double value;
10 uint64_t timestamp;
11
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)
12 MetricValue(std::string_view metadataIn, double valueIn,
13 uint64_t timestampIn) :
14 metadata(metadataIn),
15 value(valueIn), timestamp(timestampIn)
17 {}
18};
16 {}
17};