#include <Metric.h>
Definition at line 68 of file Metric.h.
◆ Metric()
◆ ~Metric()
◆ Connect()
◆ FormatInfluxDBTagValue()
std::string Metric::FormatInfluxDBTagValue |
( |
std::string const & |
value | ) |
|
|
staticprivate |
◆ FormatInfluxDBValue() [1/7]
std::string Metric::FormatInfluxDBValue |
( |
bool |
value | ) |
|
|
staticprivate |
◆ FormatInfluxDBValue() [2/7]
std::string Metric::FormatInfluxDBValue |
( |
char const * |
value | ) |
|
|
staticprivate |
◆ FormatInfluxDBValue() [3/7]
std::string Metric::FormatInfluxDBValue |
( |
double |
value | ) |
|
|
staticprivate |
◆ FormatInfluxDBValue() [4/7]
std::string Metric::FormatInfluxDBValue |
( |
float |
value | ) |
|
|
staticprivate |
◆ FormatInfluxDBValue() [5/7]
std::string Metric::FormatInfluxDBValue |
( |
std::chrono::nanoseconds |
value | ) |
|
|
staticprivate |
◆ FormatInfluxDBValue() [6/7]
std::string Metric::FormatInfluxDBValue |
( |
std::string const & |
value | ) |
|
|
staticprivate |
◆ FormatInfluxDBValue() [7/7]
template<class T >
std::string Metric::FormatInfluxDBValue |
( |
T |
value | ) |
|
|
staticprivate |
◆ GetDataStream()
std::iostream & Metric::GetDataStream |
( |
| ) |
|
|
inlineprivate |
◆ Initialize()
void Metric::Initialize |
( |
std::string const & |
realmName, |
|
|
Trinity::Asio::IoContext & |
ioContext, |
|
|
std::function< void()> |
overallStatusLogger |
|
) |
| |
◆ instance()
◆ IsEnabled()
bool Metric::IsEnabled |
( |
| ) |
const |
|
inline |
◆ LoadFromConfigs()
void Metric::LoadFromConfigs |
( |
| ) |
|
◆ LogEvent()
void Metric::LogEvent |
( |
std::string |
category, |
|
|
std::string |
title, |
|
|
std::string |
description |
|
) |
| |
◆ LogValue()
template<class T , class... TagsList>
void Metric::LogValue |
( |
std::string |
category, |
|
|
T |
value, |
|
|
TagsList &&... |
tags |
|
) |
| |
|
inline |
◆ ScheduleOverallStatusLog()
void Metric::ScheduleOverallStatusLog |
( |
| ) |
|
|
private |
◆ ScheduleSend()
void Metric::ScheduleSend |
( |
| ) |
|
|
private |
◆ SendBatch()
void Metric::SendBatch |
( |
| ) |
|
|
private |
◆ ShouldLog()
bool Metric::ShouldLog |
( |
std::string const & |
category, |
|
|
int64 |
value |
|
) |
| const |
◆ Unload()
◆ Update()
◆ _batchTimer
◆ _databaseName
std::string Metric::_databaseName |
|
private |
◆ _dataStream
std::unique_ptr<std::iostream> Metric::_dataStream |
|
private |
◆ _enabled
bool Metric::_enabled = false |
|
private |
◆ _hostname
std::string Metric::_hostname |
|
private |
◆ _overallStatusLogger
std::function<void()> Metric::_overallStatusLogger |
|
private |
◆ _overallStatusTimer
◆ _overallStatusTimerInterval
int32 Metric::_overallStatusTimerInterval = 0 |
|
private |
◆ _overallStatusTimerTriggered
bool Metric::_overallStatusTimerTriggered = false |
|
private |
◆ _port
std::string Metric::_port |
|
private |
◆ _queuedData
◆ _realmName
std::string Metric::_realmName |
|
private |
◆ _thresholds
std::unordered_map<std::string, int64> Metric::_thresholds |
|
private |
◆ _updateInterval
int32 Metric::_updateInterval = 0 |
|
private |
The documentation for this class was generated from the following files: