|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <metrics.h>
Public Member Functions | |
| LoginMetrics () | |
| void | ObserveRequest (const char *result, std::chrono::nanoseconds time) |
| const std::shared_ptr< prometheus::Registry > & | registry () const |
The login server's: how long it took to answer each request, by what came of it.
| nanommo::LoginMetrics::LoginMetrics | ( | ) |
Definition at line 139 of file metrics.cc.
| void nanommo::LoginMetrics::ObserveRequest | ( | const char * | result, |
| std::chrono::nanoseconds | time ) |
A request answered: ok, refused, when the reply says why not, as for a wrong password, which is the player's mistake, or failed, when the servers it needs couldn't answer.
Definition at line 158 of file metrics.cc.
|
inline |