mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-26 02:58:43 +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));
|
return new Dictionary(std::move(result));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double Endpoint::GetSecondsProcessingMessages() const
|
||||||
|
{
|
||||||
|
return m_InputProcessingTime;
|
||||||
|
}
|
||||||
|
@ -59,6 +59,8 @@ public:
|
|||||||
|
|
||||||
Dictionary::Ptr GetMessagesReceivedPerType() const override;
|
Dictionary::Ptr GetMessagesReceivedPerType() const override;
|
||||||
|
|
||||||
|
double GetSecondsProcessingMessages() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void OnAllConfigLoaded() override;
|
void OnAllConfigLoaded() override;
|
||||||
|
|
||||||
|
@ -58,6 +58,10 @@ class Endpoint : ConfigObject
|
|||||||
[no_user_modify, no_storage] Dictionary::Ptr messages_received_per_type {
|
[no_user_modify, no_storage] Dictionary::Ptr messages_received_per_type {
|
||||||
get;
|
get;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
[no_user_modify, no_storage] double seconds_processing_messages {
|
||||||
|
get;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user