feat: add include/reading.hpp
This commit is contained in:
8
include/reading.hpp
Normal file
8
include/reading.hpp
Normal file
@@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
struct Reading { std::string channel; double celsius; std::int64_t timestamp_ms; };
|
||||
enum class ChannelState { Healthy, Stale, OutOfRange };
|
||||
struct ChannelAssessment { Reading reading; ChannelState state; };
|
||||
ChannelAssessment assess_channel(const Reading& reading, std::int64_t now_ms);
|
||||
Reference in New Issue
Block a user