16 std::uint64_t current_load{0};
17 std::uint64_t overload_events_count{0};
18 std::uint64_t no_overload_events_count{0};
19 std::chrono::steady_clock::time_point tp;
21 double GetLoadPercent()
const;
24 virtual ~Sensor() =
default;
37 std::size_t timeouts{0};
39 std::size_t timings_avg_ms{0};
41 std::size_t current_load{0};
43 double GetRate()
const {
44 return static_cast<
double>(timeouts) / (total ? total : 1);
47 std::string ToLogString()
const;
50 virtual ~Sensor() =
default;
52 virtual Data GetCurrent() = 0;