mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
Expose Checkable#reachable
This commit is contained in:
parent
6a298615e4
commit
acf28fb5b0
@ -139,6 +139,11 @@ int Checkable::GetSeverity() const
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Checkable::GetReachable() const
|
||||||
|
{
|
||||||
|
return IsReachable();
|
||||||
|
}
|
||||||
|
|
||||||
void Checkable::NotifyFixedDowntimeStart(const Downtime::Ptr& downtime)
|
void Checkable::NotifyFixedDowntimeStart(const Downtime::Ptr& downtime)
|
||||||
{
|
{
|
||||||
if (!downtime->GetFixed())
|
if (!downtime->GetFixed())
|
||||||
|
@ -85,6 +85,7 @@ public:
|
|||||||
void ClearAcknowledgement(const MessageOrigin::Ptr& origin = nullptr);
|
void ClearAcknowledgement(const MessageOrigin::Ptr& origin = nullptr);
|
||||||
|
|
||||||
int GetSeverity() const override;
|
int GetSeverity() const override;
|
||||||
|
bool GetReachable() const override;
|
||||||
|
|
||||||
/* Checks */
|
/* Checks */
|
||||||
intrusive_ptr<CheckCommand> GetCheckCommand() const;
|
intrusive_ptr<CheckCommand> GetCheckCommand() const;
|
||||||
|
@ -123,6 +123,9 @@ abstract class Checkable : CustomVarObject
|
|||||||
[no_storage] int severity {
|
[no_storage] int severity {
|
||||||
get;
|
get;
|
||||||
};
|
};
|
||||||
|
[no_storage] bool reachable {
|
||||||
|
get;
|
||||||
|
};
|
||||||
|
|
||||||
[state] bool force_next_check;
|
[state] bool force_next_check;
|
||||||
[state] int acknowledgement (AcknowledgementRaw) {
|
[state] int acknowledgement (AcknowledgementRaw) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user