Network System 0.1.1
High-performance modular networking library for scalable client-server applications
Loading...
Searching...
No Matches
kcenon::network::integration::BridgeMetrics Struct Reference

Metrics and health information for a bridge. More...

#include <bridge_interface.h>

Collaboration diagram for kcenon::network::integration::BridgeMetrics:
Collaboration graph

Public Attributes

bool is_healthy {true}
 Overall health status of the bridge.
 
std::chrono::steady_clock::time_point last_activity
 Timestamp of last activity or health check.
 
std::map< std::string, double > custom_metrics
 Bridge-specific custom metrics.
 

Detailed Description

Metrics and health information for a bridge.

This structure provides standardized metrics reporting across all bridges. Each bridge can extend with custom metrics via the custom_metrics map.

Example:

BridgeMetrics metrics;
metrics.is_healthy = true;
metrics.last_activity = std::chrono::steady_clock::now();
metrics.custom_metrics["pending_tasks"] = 42.0;
metrics.custom_metrics["worker_threads"] = 8.0;
Metrics and health information for a bridge.
std::chrono::steady_clock::time_point last_activity
Timestamp of last activity or health check.
std::map< std::string, double > custom_metrics
Bridge-specific custom metrics.
bool is_healthy
Overall health status of the bridge.

Definition at line 109 of file bridge_interface.h.

Member Data Documentation

◆ custom_metrics

std::map<std::string, double> kcenon::network::integration::BridgeMetrics::custom_metrics

Bridge-specific custom metrics.

Each bridge can report custom metrics here. Common metric names:

  • "pending_tasks": Number of queued tasks (thread pools)
  • "worker_threads": Number of worker threads
  • "messages_sent": Total messages sent (messaging bridges)
  • "connections_active": Active connections
  • "error_count": Number of errors encountered

Definition at line 134 of file bridge_interface.h.

Referenced by kcenon::network::integration::messaging_bridge::get_metrics(), kcenon::network::integration::NetworkSystemBridge::Impl::get_metrics(), kcenon::network::integration::ObservabilityBridge::get_metrics(), kcenon::network::integration::ThreadPoolBridge::get_metrics(), kcenon::network::integration::messaging_bridge::initialize(), kcenon::network::integration::ObservabilityBridge::initialize(), and kcenon::network::integration::ThreadPoolBridge::initialize().

◆ is_healthy

◆ last_activity


The documentation for this struct was generated from the following file: