Expose Checkable#reachable

This commit is contained in:
Alexander A. Klimov 2019-04-09 11:09:02 +02:00
parent 6a298615e4
commit acf28fb5b0
3 changed files with 9 additions and 0 deletions

View File

@ -139,6 +139,11 @@ int Checkable::GetSeverity() const
return 0;
}
bool Checkable::GetReachable() const
{
return IsReachable();
}
void Checkable::NotifyFixedDowntimeStart(const Downtime::Ptr& downtime)
{
if (!downtime->GetFixed())

View File

@ -85,6 +85,7 @@ public:
void ClearAcknowledgement(const MessageOrigin::Ptr& origin = nullptr);
int GetSeverity() const override;
bool GetReachable() const override;
/* Checks */
intrusive_ptr<CheckCommand> GetCheckCommand() const;

View File

@ -123,6 +123,9 @@ abstract class Checkable : CustomVarObject
[no_storage] int severity {
get;
};
[no_storage] bool reachable {
get;
};
[state] bool force_next_check;
[state] int acknowledgement (AcknowledgementRaw) {