AnyCollect
1.1.2
|
Classes | |
struct | Config |
Struct used to represent the JSON configuration file. More... | |
class | Controller |
class | ControllerDelegate |
Abstract delegate of Controller. More... | |
class | Expression |
Class used to represent an expression (regex) More... | |
class | Matcher |
Class used to represent a matcher, that is a way to convert expressions matches into a metric. More... | |
class | Metric |
Class used to represent a metric object (with a name, unit, tags, a value and a timestamp) More... | |
class | SnapInterface |
class | Source |
Class used to represent a source (file or command output) from which metrics can be matched. More... | |
Functions | |
void | from_json (const nlohmann::json &je, Config::expression &e) noexcept |
void | from_json (const nlohmann::json &j, Config &c) noexcept |
Converts a json object into a Config object. More... | |
template<typename T , typename K > | |
T | getValue (const nlohmann::json &j, const K &key) noexcept |
Parse a JSON value of specified type from a JSON dictionary. More... | |
uint64_t | parseUint (const char *&buffer) noexcept |
void | replaceMatches (std::string &str, const std::cmatch &match, const std::vector< std::string > &pathParts) |
|
noexcept |
|
noexcept |
|
noexcept |
Parse a JSON value of specified type from a JSON dictionary.
If the key is not in the JSON dictionary, the program's execution is aborted with an error.
T | Expected type of JSON object |
K | Type of key |
j | JSON dictionary |
key | key of the JSON object to get |
|
inlinenoexcept |
|
inline |
Definition at line 102 of file Matcher.cc.