#pragma once
#include <atomic>
#include <cstdint>
namespace telegrammer
{
/// Publishes coarse daemon health state without exposing sensitive data.
struct RuntimeState
{
/// Whether the polling component is currently able to run.
std::atomic<bool> polling_ready = false;
/// Whether polling has entered a persistent degraded state.
std::atomic<bool> degraded = true;
/// Unix seconds of the last successfully committed poll batch.
std::atomic<int64_t> last_success = 0;
};
} // namespace telegrammer