Helps to parse the metrics string with JSON format.
More...
#include <KafkaMetrics.h>
|
using | KeysType = std::vector< std::string > |
|
template<typename ValueType > |
using | ResultsType = std::vector< std::pair< KeysType, ValueType > > |
| The matched keys (for wildcards) and the value.
|
|
|
static std::string | toString (const KafkaMetrics::KeysType &keys) |
|
template<typename ValueType > |
static std::string | toString (const KafkaMetrics::ResultsType< ValueType > &results) |
|
|
static constexpr const char * | WILDCARD = "*" |
|
Helps to parse the metrics string with JSON format.
◆ getInt()
ResultsType<std::int64_t> KAFKA_API::KafkaMetrics::getInt |
( |
const KeysType & |
keys | ) |
const |
|
inline |
Get integer value(s) for the specified metrics.
Note: the wildcard ("*") is supported.
◆ getString()
ResultsType<std::string> KAFKA_API::KafkaMetrics::getString |
( |
const KeysType & |
keys | ) |
const |
|
inline |
Get string value(s) for the specified metrics.
Note: the wildcard ("*") is supported.
The documentation for this class was generated from the following file:
- /home/runner/work/modern-cpp-kafka/modern-cpp-kafka/include/kafka/addons/KafkaMetrics.h