From be2b1a878e3afe5e3dbe020f51c8f0bb1b9dcdd4 Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Mon, 8 Sep 2025 10:26:25 +0200 Subject: [PATCH] Endpoint expose seconds_processing_messages attribute Co-authored-by: Alexander A. Klimov --- lib/remote/endpoint.cpp | 5 +++++ lib/remote/endpoint.hpp | 2 ++ lib/remote/endpoint.ti | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/lib/remote/endpoint.cpp b/lib/remote/endpoint.cpp index c13d4f7d2..751f89539 100644 --- a/lib/remote/endpoint.cpp +++ b/lib/remote/endpoint.cpp @@ -167,3 +167,8 @@ Dictionary::Ptr Endpoint::GetMessagesReceivedPerType() const return new Dictionary(std::move(result)); } + +double Endpoint::GetSecondsProcessingMessages() const +{ + return m_InputProcessingTime; +} diff --git a/lib/remote/endpoint.hpp b/lib/remote/endpoint.hpp index 5d80f26de..0cd015bf9 100644 --- a/lib/remote/endpoint.hpp +++ b/lib/remote/endpoint.hpp @@ -59,6 +59,8 @@ public: Dictionary::Ptr GetMessagesReceivedPerType() const override; + double GetSecondsProcessingMessages() const override; + protected: void OnAllConfigLoaded() override; diff --git a/lib/remote/endpoint.ti b/lib/remote/endpoint.ti index 2fa874b5e..c246af4d6 100644 --- a/lib/remote/endpoint.ti +++ b/lib/remote/endpoint.ti @@ -58,6 +58,10 @@ class Endpoint : ConfigObject [no_user_modify, no_storage] Dictionary::Ptr messages_received_per_type { get; }; + + [no_user_modify, no_storage] double seconds_processing_messages { + get; + }; }; }