|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <metrics.h>
Public Member Functions | |
| Metrics () | |
| void | SetPlayers (const char *land, std::size_t count) |
| void | SetCopies (const char *land, std::size_t count) |
| How many copies of the land the server runs. | |
| void | ObserveTick (std::chrono::nanoseconds time) |
| void | ObserveSave (std::chrono::nanoseconds time) |
| void | AddBytesSent (std::size_t bytes) |
| void | AddMessageReceived () |
| void | AddChatLine (const char *result) |
| A line of chat, by what became of it: said, or refused. | |
| void | AddStory (const char *result) |
| void | ObserveStory (std::chrono::nanoseconds time) |
| From when the player asked to when the story was told. | |
| void | AddDropped (const char *why) |
| void | AddWarKills (std::size_t count) |
| Kills in a guild war, which go to the saver, for their wars' scores. | |
| const std::shared_ptr< prometheus::Registry > & | registry () const |
| nanommo::Metrics::Metrics | ( | ) |
Definition at line 29 of file metrics.cc.
| void nanommo::Metrics::AddBytesSent | ( | std::size_t | bytes | ) |
Definition at line 113 of file metrics.cc.
| void nanommo::Metrics::AddChatLine | ( | const char * | result | ) |
A line of chat, by what became of it: said, or refused.
Definition at line 119 of file metrics.cc.
| void nanommo::Metrics::AddDropped | ( | const char * | why | ) |
A player the server let go of without saving them, by why: their lease isn't this instance's any more, or their trade couldn't be saved.
Definition at line 131 of file metrics.cc.
| void nanommo::Metrics::AddMessageReceived | ( | ) |
Definition at line 117 of file metrics.cc.
| void nanommo::Metrics::AddStory | ( | const char * | result | ) |
A story a player asked for, by what became of it: told, refused, or failed, when the storyteller couldn't tell it.
Definition at line 123 of file metrics.cc.
| void nanommo::Metrics::AddWarKills | ( | std::size_t | count | ) |
Kills in a guild war, which go to the saver, for their wars' scores.
Definition at line 135 of file metrics.cc.
| void nanommo::Metrics::ObserveSave | ( | std::chrono::nanoseconds | time | ) |
Definition at line 109 of file metrics.cc.
| void nanommo::Metrics::ObserveStory | ( | std::chrono::nanoseconds | time | ) |
From when the player asked to when the story was told.
Definition at line 127 of file metrics.cc.
| void nanommo::Metrics::ObserveTick | ( | std::chrono::nanoseconds | time | ) |
Definition at line 105 of file metrics.cc.
|
inline |
| void nanommo::Metrics::SetCopies | ( | const char * | land, |
| std::size_t | count ) |
How many copies of the land the server runs.
Definition at line 101 of file metrics.cc.
| void nanommo::Metrics::SetPlayers | ( | const char * | land, |
| std::size_t | count ) |
Definition at line 96 of file metrics.cc.