Endpoint expose seconds_processing_messages attribute

Co-authored-by: Alexander A. Klimov <alexander.klimov@icinga.com>
This commit is contained in:
Julian Brost 2025-09-08 10:26:25 +02:00
parent e3ee07b5a0
commit be2b1a878e
3 changed files with 11 additions and 0 deletions

View File

@ -167,3 +167,8 @@ Dictionary::Ptr Endpoint::GetMessagesReceivedPerType() const
return new Dictionary(std::move(result));
}
double Endpoint::GetSecondsProcessingMessages() const
{
return m_InputProcessingTime;
}

View File

@ -59,6 +59,8 @@ public:
Dictionary::Ptr GetMessagesReceivedPerType() const override;
double GetSecondsProcessingMessages() const override;
protected:
void OnAllConfigLoaded() override;

View File

@ -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;
};
};
}