Skip to content

Commit be2b1a8

Browse files
Endpoint expose seconds_processing_messages attribute
Co-authored-by: Alexander A. Klimov <[email protected]>
1 parent e3ee07b commit be2b1a8

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

lib/remote/endpoint.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,8 @@ Dictionary::Ptr Endpoint::GetMessagesReceivedPerType() const
167167

168168
return new Dictionary(std::move(result));
169169
}
170+
171+
double Endpoint::GetSecondsProcessingMessages() const
172+
{
173+
return m_InputProcessingTime;
174+
}

lib/remote/endpoint.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ class Endpoint final : public ObjectImpl<Endpoint>
5959

6060
Dictionary::Ptr GetMessagesReceivedPerType() const override;
6161

62+
double GetSecondsProcessingMessages() const override;
63+
6264
protected:
6365
void OnAllConfigLoaded() override;
6466

lib/remote/endpoint.ti

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ class Endpoint : ConfigObject
5858
[no_user_modify, no_storage] Dictionary::Ptr messages_received_per_type {
5959
get;
6060
};
61+
62+
[no_user_modify, no_storage] double seconds_processing_messages {
63+
get;
64+
};
6165
};
6266

6367
}

0 commit comments

Comments
 (0)