mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-25 18:48:50 +02:00
Endpoint expose seconds_processing_messages attribute
Co-authored-by: Alexander A. Klimov <alexander.klimov@icinga.com>
This commit is contained in:
parent
e3ee07b5a0
commit
be2b1a878e
@ -167,3 +167,8 @@ Dictionary::Ptr Endpoint::GetMessagesReceivedPerType() const
|
||||
|
||||
return new Dictionary(std::move(result));
|
||||
}
|
||||
|
||||
double Endpoint::GetSecondsProcessingMessages() const
|
||||
{
|
||||
return m_InputProcessingTime;
|
||||
}
|
||||
|
@ -59,6 +59,8 @@ public:
|
||||
|
||||
Dictionary::Ptr GetMessagesReceivedPerType() const override;
|
||||
|
||||
double GetSecondsProcessingMessages() const override;
|
||||
|
||||
protected:
|
||||
void OnAllConfigLoaded() override;
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user