#include <NTRIPConnectionStats.h>
Signals | |
| void | statsChanged () |
Public Member Functions | |
| NTRIPConnectionStats (std::chrono::milliseconds staleAfter, QObject *parent=nullptr, RuntimeScheduler *scheduler=nullptr) | |
| The stream counts as stale once no message has arrived for staleAfter. | |
| void | start () |
| void | stop () |
| void | recordMessage (int bytes, int messageId, qint64 receivedAtMs) |
| Count every message; health uses the newest valid receipt on the scheduler's clock. | |
| void | reset () |
| quint64 | bytesReceived () const |
| quint32 | messagesReceived () const |
| double | dataRateBytesPerSec () const |
| double | correctionAgeSec () const |
| bool | dataStale () const |
| bool | dataUsageHigh () const |
| QList< RTCMMessageCount > | messageCountsById () const |
Static Public Attributes | |
| static constexpr quint64 | DATA_USAGE_WARNING_BYTES = 50 * 1024 * 1024 |
| More than DATA_USAGE_WARNING_BYTES received, which may cost money on metered connections. | |
Statistics of the current NTRIP stream for display. Every property notifies through statsChanged(), which follows each change of the stream's lifecycle and, while it runs, every second.
Definition at line 17 of file NTRIPConnectionStats.h.
|
explicit |
The stream counts as stale once no message has arrived for staleAfter.
Definition at line 12 of file NTRIPConnectionStats.cc.
References NTRIPConnectionStats().
Referenced by NTRIPConnectionStats().
|
inline |
Definition at line 46 of file NTRIPConnectionStats.h.
Referenced by dataUsageHigh().
| double NTRIPConnectionStats::correctionAgeSec | ( | ) | const |
Definition at line 44 of file NTRIPConnectionStats.cc.
References MonotonicClock::age().
|
inline |
Definition at line 50 of file NTRIPConnectionStats.h.
|
inline |
Definition at line 54 of file NTRIPConnectionStats.h.
|
inline |
Definition at line 56 of file NTRIPConnectionStats.h.
References bytesReceived(), and DATA_USAGE_WARNING_BYTES.
| QList< RTCMMessageCount > NTRIPConnectionStats::messageCountsById | ( | ) | const |
Definition at line 90 of file NTRIPConnectionStats.cc.
References RTCMMessageCount::messageId.
|
inline |
Definition at line 48 of file NTRIPConnectionStats.h.
| void NTRIPConnectionStats::recordMessage | ( | int | bytes, |
| int | messageId, | ||
| qint64 | receivedAtMs ) |
Count every message; health uses the newest valid receipt on the scheduler's clock.
Definition at line 58 of file NTRIPConnectionStats.cc.
References statsChanged().
| void NTRIPConnectionStats::reset | ( | ) |
Definition at line 79 of file NTRIPConnectionStats.cc.
References statsChanged().
| void NTRIPConnectionStats::start | ( | ) |
Definition at line 26 of file NTRIPConnectionStats.cc.
References statsChanged().
|
signal |
Referenced by recordMessage(), reset(), start(), and stop().
| void NTRIPConnectionStats::stop | ( | ) |
Definition at line 36 of file NTRIPConnectionStats.cc.
References statsChanged().
|
staticconstexpr |
More than DATA_USAGE_WARNING_BYTES received, which may cost money on metered connections.
Per-RTCM-message-ID counts since the current connection started, ascending by ID so the QML chips need no sorting.
Definition at line 34 of file NTRIPConnectionStats.h.
Referenced by dataUsageHigh().