#include <Metric.h>
Definition at line 60 of file Metric.h.
◆ iostream
◆ Metric() [1/3]
◆ ~Metric()
◆ Metric() [2/3]
| Metric::Metric |
( |
Metric const & |
| ) |
|
|
delete |
◆ Metric() [3/3]
◆ 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 >
requires std::integral<T> && (!std::same_as<T, bool>)
| std::string Metric::FormatInfluxDBValue |
( |
T |
value | ) |
|
|
staticprivate |
◆ GetDataStream()
◆ 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_view |
category, |
|
|
std::string_view |
title, |
|
|
std::string |
description |
|
) |
| |
◆ LogValue()
template<class T , class... TagsList>
| void Metric::LogValue |
( |
std::string_view |
category, |
|
|
T |
value, |
|
|
TagsList &&... |
tags |
|
) |
| |
|
inlinenoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ ScheduleOverallStatusLog()
| void Metric::ScheduleOverallStatusLog |
( |
| ) |
|
|
private |
◆ ScheduleSend()
| void Metric::ScheduleSend |
( |
| ) |
|
|
private |
◆ SendBatch()
| void Metric::SendBatch |
( |
| ) |
|
|
private |
◆ ShouldLog()
| bool Metric::ShouldLog |
( |
std::string_view |
category, |
|
|
int64 |
value |
|
) |
| const |
◆ Unload()
◆ Update()
◆ _batchTimer
◆ _databaseName
| std::string Metric::_databaseName |
|
private |
◆ _dataStream
| std::unique_ptr<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
◆ _updateInterval
| int32 Metric::_updateInterval = 0 |
|
private |
The documentation for this class was generated from the following files: