Summary
Define the NetworkMetricEvent struct for EventBus-based metric publishing as part of the monitoring decoupling effort.
Parent Issue
Tasks
Implementation
namespace kcenon::network::events {
struct NetworkMetricEvent {
std::string metric_name;
double value;
std::chrono::steady_clock::time_point timestamp;
std::map<std::string, std::string> labels;
explicit NetworkMetricEvent(const std::string& name, double val,
const std::map<std::string, std::string>& lbls = {})
: metric_name(name), value(val),
timestamp(std::chrono::steady_clock::now()),
labels(lbls) {}
};
} // namespace kcenon::network::events
Acceptance Criteria
Summary
Define the
NetworkMetricEventstruct for EventBus-based metric publishing as part of the monitoring decoupling effort.Parent Issue
Tasks
include/kcenon/network/events/directory if not existsNetworkMetricEventstruct with metric_name, value, timestamp, and labelsconcepts::EventTypeconceptImplementation
Acceptance Criteria