nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::LoginMetrics Class Reference

#include <metrics.h>

Public Member Functions

 LoginMetrics ()
void ObserveRequest (const char *result, std::chrono::nanoseconds time)
const std::shared_ptr< prometheus::Registry > & registry () const

Detailed Description

The login server's: how long it took to answer each request, by what came of it.

Definition at line 71 of file metrics.h.

Constructor & Destructor Documentation

◆ LoginMetrics()

nanommo::LoginMetrics::LoginMetrics ( )

Definition at line 139 of file metrics.cc.

Member Function Documentation

◆ ObserveRequest()

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.

◆ registry()

const std::shared_ptr< prometheus::Registry > & nanommo::LoginMetrics::registry ( ) const
inline

Definition at line 80 of file metrics.h.


The documentation for this class was generated from the following files: