mirror of https://github.com/Icinga/icinga2.git
Expose Checkable#reachable
This commit is contained in:
parent
6a298615e4
commit
acf28fb5b0
|
@ -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())
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue