|
| VoidResult | record_metric (const std::string &name, double value) override |
| |
| VoidResult | record_metric (const std::string &name, double value, const std::unordered_map< std::string, std::string > &tags) override |
| |
| kcenon::common::Result< kcenon::common::interfaces::metrics_snapshot > | get_metrics () override |
| |
| kcenon::common::Result< kcenon::common::interfaces::health_check_result > | check_health () override |
| |
| VoidResult | reset () override |
| |
|
| kcenon::common::interfaces::metrics_snapshot | snapshot_ |
| |
◆ VoidResult
◆ check_health()
| kcenon::common::Result< kcenon::common::interfaces::health_check_result > sample_monitoring::check_health |
( |
| ) |
|
|
inlineoverride |
◆ get_metrics()
| kcenon::common::Result< kcenon::common::interfaces::metrics_snapshot > sample_monitoring::get_metrics |
( |
| ) |
|
|
inlineoverride |
◆ record_metric() [1/2]
| VoidResult sample_monitoring::record_metric |
( |
const std::string & | name, |
|
|
double | value ) |
|
inlineoverride |
◆ record_metric() [2/2]
| VoidResult sample_monitoring::record_metric |
( |
const std::string & | name, |
|
|
double | value, |
|
|
const std::unordered_map< std::string, std::string > & | tags ) |
|
inlineoverride |
Definition at line 47 of file multi_process_monitoring_integration.cpp.
50 {
51 std::cout << formatter::format("{}: {}", name, value);
52 if (!tags.empty()) {
53 std::cout << " [";
54 bool first = true;
55 for (const auto& [k, v] : tags) {
56 if (!first) std::cout << ", ";
57 std::cout << k << "=" << v;
58 first = false;
59 }
60 std::cout << "]";
61 }
62 std::cout << "\n";
63
64 kcenon::common::interfaces::metric_value mv(name, value);
65 mv.tags = tags;
67 return kcenon::common::ok();
68 }
References snapshot_.
◆ reset()
◆ snapshot_
| kcenon::common::interfaces::metrics_snapshot sample_monitoring::snapshot_ |
|
private |
The documentation for this class was generated from the following file: