mirror of https://github.com/Icinga/icinga2.git
parent
c59a8c8277
commit
23264a291e
|
@ -95,8 +95,6 @@ void Checkable::AddGroup(const String& name)
|
||||||
|
|
||||||
AcknowledgementType Checkable::GetAcknowledgement(void)
|
AcknowledgementType Checkable::GetAcknowledgement(void)
|
||||||
{
|
{
|
||||||
ASSERT(OwnsLock());
|
|
||||||
|
|
||||||
AcknowledgementType avalue = static_cast<AcknowledgementType>(GetAcknowledgementRaw());
|
AcknowledgementType avalue = static_cast<AcknowledgementType>(GetAcknowledgementRaw());
|
||||||
|
|
||||||
if (avalue != AcknowledgementNone) {
|
if (avalue != AcknowledgementNone) {
|
||||||
|
@ -118,12 +116,8 @@ bool Checkable::IsAcknowledged(void)
|
||||||
|
|
||||||
void Checkable::AcknowledgeProblem(const String& author, const String& comment, AcknowledgementType type, bool notify, double expiry, const MessageOrigin& origin)
|
void Checkable::AcknowledgeProblem(const String& author, const String& comment, AcknowledgementType type, bool notify, double expiry, const MessageOrigin& origin)
|
||||||
{
|
{
|
||||||
{
|
|
||||||
ObjectLock olock(this);
|
|
||||||
|
|
||||||
SetAcknowledgementRaw(type);
|
SetAcknowledgementRaw(type);
|
||||||
SetAcknowledgementExpiry(expiry);
|
SetAcknowledgementExpiry(expiry);
|
||||||
}
|
|
||||||
|
|
||||||
if (notify)
|
if (notify)
|
||||||
OnNotificationsRequested(this, NotificationAcknowledgement, GetLastCheckResult(), author, comment);
|
OnNotificationsRequested(this, NotificationAcknowledgement, GetLastCheckResult(), author, comment);
|
||||||
|
@ -133,8 +127,6 @@ void Checkable::AcknowledgeProblem(const String& author, const String& comment,
|
||||||
|
|
||||||
void Checkable::ClearAcknowledgement(const MessageOrigin& origin)
|
void Checkable::ClearAcknowledgement(const MessageOrigin& origin)
|
||||||
{
|
{
|
||||||
ASSERT(OwnsLock());
|
|
||||||
|
|
||||||
SetAcknowledgementRaw(AcknowledgementNone);
|
SetAcknowledgementRaw(AcknowledgementNone);
|
||||||
SetAcknowledgementExpiry(0);
|
SetAcknowledgementExpiry(0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue