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

#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

Detailed Description

Definition at line 16 of file metrics.h.

Constructor & Destructor Documentation

◆ Metrics()

nanommo::Metrics::Metrics ( )

Definition at line 29 of file metrics.cc.

Member Function Documentation

◆ AddBytesSent()

void nanommo::Metrics::AddBytesSent ( std::size_t bytes)

Definition at line 113 of file metrics.cc.

◆ AddChatLine()

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.

◆ AddDropped()

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.

◆ AddMessageReceived()

void nanommo::Metrics::AddMessageReceived ( )

Definition at line 117 of file metrics.cc.

◆ AddStory()

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.

◆ AddWarKills()

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.

◆ ObserveSave()

void nanommo::Metrics::ObserveSave ( std::chrono::nanoseconds time)

Definition at line 109 of file metrics.cc.

◆ ObserveStory()

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.

◆ ObserveTick()

void nanommo::Metrics::ObserveTick ( std::chrono::nanoseconds time)

Definition at line 105 of file metrics.cc.

◆ registry()

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

Definition at line 50 of file metrics.h.

◆ SetCopies()

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.

◆ SetPlayers()

void nanommo::Metrics::SetPlayers ( const char * land,
std::size_t count )

Definition at line 96 of file metrics.cc.


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