return IsReachable();
}
+bool Checkable::GetProblem() const
+{
+ return !IsStateOK(GetStateRaw());
+}
+
+bool Checkable::GetHandled() const
+{
+ return GetProblem() && (IsInDowntime() || IsAcknowledged());
+}
+
void Checkable::NotifyFixedDowntimeStart(const Downtime::Ptr& downtime)
{
if (!downtime->GetFixed())
int GetSeverity() const override;
bool GetReachable() const override;
+ bool GetProblem() const override;
+ bool GetHandled() const override;
/* Checks */
intrusive_ptr<CheckCommand> GetCheckCommand() const;
[no_storage] bool reachable {
get;
};
+ [no_storage] bool problem {
+ get;
+ };
+ [no_storage] bool handled {
+ get;
+ };
[state] bool force_next_check;
[state] int acknowledgement (AcknowledgementRaw) {