* state/state_type attributes. */
DynamicObject::FlushTx();
- RequestNotifications(NotificationStateChange);
+ if (IsReachable() && !IsInDowntime() && !IsAcknowledged())
+ RequestNotifications(NotificationStateChange);
}
}
Set("acknowledgement", static_cast<long>(acknowledgement));
}
+bool Service::IsAcknowledged(void)
+{
+ return GetAcknowledgement() != AcknowledgementNone;
+}
+
double Service::GetAcknowledgementExpiry(void) const
{
Value value = Get("acknowledgement_expiry");
static void ValidateDowntimeCache(void);
bool IsInDowntime(void) const;
+ bool IsAcknowledged(void);
/* Comments */
static int GetNextCommentID(void);