9namespace congestion_control {
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 {
return static_cast<
double>(timeouts) / (total ? total : 1); }
45 std::string ToLogString()
const;
48 virtual ~Sensor() =
default;
50 virtual Data GetCurrent() = 0;