Server-wide cumulative telemetry aggregated across all sessions.
More...
#include <StormByte/network/server_telemetry.hxx>
|
| class | Server |
| | Allow the owning server to record telemetry events.
|
Server-wide cumulative telemetry aggregated across all sessions.
◆ ServerTelemetry()
| StormByte::Network::ServerTelemetry::ServerTelemetry |
( |
| ) |
|
|
noexcept |
Construct all server counters at zero.
◆ ~ServerTelemetry()
| StormByte::Network::ServerTelemetry::~ServerTelemetry |
( |
| ) |
|
|
overridenoexcept |
Virtual destructor anchors server telemetry RTTI in Network.
◆ AcceptedConnections()
| Size StormByte::Network::ServerTelemetry::AcceptedConnections |
( |
| ) |
const |
|
noexcept |
Total application sessions accepted by this Server.
- Returns
- Cumulative accepted-session count.
◆ ClosedConnections()
| Size StormByte::Network::ServerTelemetry::ClosedConnections |
( |
| ) |
const |
|
noexcept |
Total application sessions closed by this Server.
- Returns
- Cumulative closed-session count.
◆ CurrentConnections()
| Size StormByte::Network::ServerTelemetry::CurrentConnections |
( |
| ) |
const |
|
noexcept |
Number of currently active application sessions.
- Returns
- Current active-session count.
◆ HandlerErrors()
| Size StormByte::Network::ServerTelemetry::HandlerErrors |
( |
| ) |
const |
|
noexcept |
Worker-pool callbacks that completed with an error.
- Returns
- Cumulative worker-pool error count.
◆ HandlerLatencySamples()
| Size StormByte::Network::ServerTelemetry::HandlerLatencySamples |
( |
| ) |
const |
|
noexcept |
Number of completed packet-handler duration samples.
- Returns
- Cumulative completed handler-duration sample count.
◆ HandlersCompleted()
| Size StormByte::Network::ServerTelemetry::HandlersCompleted |
( |
| ) |
const |
|
noexcept |
Packet handlers that returned a non-null response.
- Returns
- Cumulative count of handlers returning responses.
◆ HandlersWithoutResponse()
| Size StormByte::Network::ServerTelemetry::HandlersWithoutResponse |
( |
| ) |
const |
|
noexcept |
Packet handlers that returned no response.
- Returns
- Cumulative no-response count, including intentional disconnects.
◆ MeanHandlerLatency()
| std::chrono::microseconds StormByte::Network::ServerTelemetry::MeanHandlerLatency |
( |
| ) |
const |
|
noexcept |
Mean ProcessClientPacket duration, or zero without samples.
- Returns
- Mean elapsed microseconds, truncated to whole microseconds; zero when no samples have been recorded.
◆ operator StormByte::Safe::String()
Flatten the aggregate server counters to owned UTF-8 text.
- Returns
- Owned text containing the server's telemetry counters.
Implements StormByte::Network::Telemetry.
◆ PacketsDispatched()
| Size StormByte::Network::ServerTelemetry::PacketsDispatched |
( |
| ) |
const |
|
noexcept |
Valid application packets submitted to the worker pool.
- Returns
- Cumulative dispatched-packet count.
◆ PeakConnections()
| Size StormByte::Network::ServerTelemetry::PeakConnections |
( |
| ) |
const |
|
noexcept |
Maximum simultaneous application sessions observed.
- Returns
- Highest recorded active-session count.
◆ WorkerQueueBackpressureEvents()
| Size StormByte::Network::ServerTelemetry::WorkerQueueBackpressureEvents |
( |
| ) |
const |
|
noexcept |
Times a ready session was blocked by a full worker queue.
- Returns
- Cumulative worker-queue backpressure event count.
◆ Server
Allow the owning server to record telemetry events.
The documentation for this class was generated from the following file: