"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/icinga/checkable.hpp" between
icinga2-2.11.5.tar.gz and icinga2-2.12.0.tar.gz

About: Icinga 2 is an enterprise grade monitoring system which keeps watch over networks and any conceivable network resource.

checkable.hpp  (icinga2-2.11.5):checkable.hpp  (icinga2-2.12.0)
skipping to change at line 42 skipping to change at line 42
* Checkable Types * Checkable Types
* *
* @ingroup icinga * @ingroup icinga
*/ */
enum CheckableType enum CheckableType
{ {
CheckableHost, CheckableHost,
CheckableService CheckableService
}; };
/**
* Severity Flags
*
* @ingroup icinga
*/
enum SeverityFlag
{
SeverityFlagDowntime = 1,
SeverityFlagAcknowledgement = 2,
SeverityFlagHostDown = 4,
SeverityFlagUnhandled = 8,
SeverityFlagPending = 16,
SeverityFlagWarning = 32,
SeverityFlagUnknown = 64,
SeverityFlagCritical = 128,
};
class CheckCommand; class CheckCommand;
class EventCommand; class EventCommand;
class Dependency; class Dependency;
/** /**
* An Icinga service. * An Icinga service.
* *
* @ingroup icinga * @ingroup icinga
*/ */
class Checkable : public ObjectImpl<Checkable> class Checkable : public ObjectImpl<Checkable>
skipping to change at line 88 skipping to change at line 71
std::set<Checkable::Ptr> GetParents() const; std::set<Checkable::Ptr> GetParents() const;
std::set<Checkable::Ptr> GetChildren() const; std::set<Checkable::Ptr> GetChildren() const;
std::set<Checkable::Ptr> GetAllChildren() const; std::set<Checkable::Ptr> GetAllChildren() const;
void AddGroup(const String& name); void AddGroup(const String& name);
bool IsReachable(DependencyType dt = DependencyState, intrusive_ptr<Depen dency> *failedDependency = nullptr, int rstack = 0) const; bool IsReachable(DependencyType dt = DependencyState, intrusive_ptr<Depen dency> *failedDependency = nullptr, int rstack = 0) const;
AcknowledgementType GetAcknowledgement(); AcknowledgementType GetAcknowledgement();
void AcknowledgeProblem(const String& author, const String& comment, Ackn void AcknowledgeProblem(const String& author, const String& comment, Ackn
owledgementType type, bool notify = true, bool persistent = false, double expiry owledgementType type, bool notify = true, bool persistent = false, double change
= 0, const MessageOrigin::Ptr& origin = nullptr); Time = Utility::GetTime(), double expiry = 0, const MessageOrigin::Ptr& origin =
void ClearAcknowledgement(const MessageOrigin::Ptr& origin = nullptr); nullptr);
void ClearAcknowledgement(const String& removedBy, double changeTime = Ut
ility::GetTime(), const MessageOrigin::Ptr& origin = nullptr);
int GetSeverity() const override; int GetSeverity() const override;
bool GetProblem() const override; bool GetProblem() const override;
bool GetHandled() const override; bool GetHandled() const override;
Timestamp GetNextUpdate() const override;
/* Checks */ /* Checks */
intrusive_ptr<CheckCommand> GetCheckCommand() const; intrusive_ptr<CheckCommand> GetCheckCommand() const;
TimePeriod::Ptr GetCheckPeriod() const; TimePeriod::Ptr GetCheckPeriod() const;
long GetSchedulingOffset(); long GetSchedulingOffset();
void SetSchedulingOffset(long offset); void SetSchedulingOffset(long offset);
void UpdateNextCheck(const MessageOrigin::Ptr& origin = nullptr); void UpdateNextCheck(const MessageOrigin::Ptr& origin = nullptr);
skipping to change at line 131 skipping to change at line 115
static boost::signals2::signal<void (const Checkable::Ptr&, const CheckRe sult::Ptr&, std::set<Checkable::Ptr>, const MessageOrigin::Ptr&)> OnReachability Changed; static boost::signals2::signal<void (const Checkable::Ptr&, const CheckRe sult::Ptr&, std::set<Checkable::Ptr>, const MessageOrigin::Ptr&)> OnReachability Changed;
static boost::signals2::signal<void (const Checkable::Ptr&, NotificationT ype, const CheckResult::Ptr&, static boost::signals2::signal<void (const Checkable::Ptr&, NotificationT ype, const CheckResult::Ptr&,
const String&, const String&, const MessageOrigin::Ptr&)> OnNotif icationsRequested; const String&, const String&, const MessageOrigin::Ptr&)> OnNotif icationsRequested;
static boost::signals2::signal<void (const Notification::Ptr&, const Chec kable::Ptr&, const User::Ptr&, static boost::signals2::signal<void (const Notification::Ptr&, const Chec kable::Ptr&, const User::Ptr&,
const NotificationType&, const CheckResult::Ptr&, const String&, const String&, const String&, const NotificationType&, const CheckResult::Ptr&, const String&, const String&, const String&,
const MessageOrigin::Ptr&)> OnNotificationSentToUser; const MessageOrigin::Ptr&)> OnNotificationSentToUser;
static boost::signals2::signal<void (const Notification::Ptr&, const Chec kable::Ptr&, const std::set<User::Ptr>&, static boost::signals2::signal<void (const Notification::Ptr&, const Chec kable::Ptr&, const std::set<User::Ptr>&,
const NotificationType&, const CheckResult::Ptr&, const String&, const NotificationType&, const CheckResult::Ptr&, const String&,
const String&, const MessageOrigin::Ptr&)> OnNotificationSentToAl lUsers; const String&, const MessageOrigin::Ptr&)> OnNotificationSentToAl lUsers;
static boost::signals2::signal<void (const Checkable::Ptr&, const String& , const String&, AcknowledgementType, static boost::signals2::signal<void (const Checkable::Ptr&, const String& , const String&, AcknowledgementType,
bool, bool, double, const MessageOrigin::Ptr&)> OnAcknowledgement bool, bool, double, double, const MessageOrigin::Ptr&)> OnAcknowl
Set; edgementSet;
static boost::signals2::signal<void (const Checkable::Ptr&, const Message static boost::signals2::signal<void (const Checkable::Ptr&, const String&
Origin::Ptr&)> OnAcknowledgementCleared; , double, const MessageOrigin::Ptr&)> OnAcknowledgementCleared;
static boost::signals2::signal<void (const Checkable::Ptr&, double)> OnFl
appingChange;
static boost::signals2::signal<void (const Checkable::Ptr&)> OnNextCheckU pdated; static boost::signals2::signal<void (const Checkable::Ptr&)> OnNextCheckU pdated;
static boost::signals2::signal<void (const Checkable::Ptr&)> OnEventComma ndExecuted; static boost::signals2::signal<void (const Checkable::Ptr&)> OnEventComma ndExecuted;
static Atomic<uint_fast64_t> CurrentConcurrentChecks; static Atomic<uint_fast64_t> CurrentConcurrentChecks;
/* Downtimes */ /* Downtimes */
int GetDowntimeDepth() const final; int GetDowntimeDepth() const final;
void RemoveAllDowntimes(); void RemoveAllDowntimes();
void TriggerDowntimes(); void TriggerDowntimes();
bool IsInDowntime() const; bool IsInDowntime() const;
bool IsAcknowledged() const; bool IsAcknowledged() const;
std::set<Downtime::Ptr> GetDowntimes() const; std::set<Downtime::Ptr> GetDowntimes() const;
void RegisterDowntime(const Downtime::Ptr& downtime); void RegisterDowntime(const Downtime::Ptr& downtime);
void UnregisterDowntime(const Downtime::Ptr& downtime); void UnregisterDowntime(const Downtime::Ptr& downtime);
/* Comments */ /* Comments */
void RemoveAllComments(); void RemoveAllComments();
void RemoveCommentsByType(int type); void RemoveCommentsByType(int type, const String& removedBy = String());
std::set<Comment::Ptr> GetComments() const; std::set<Comment::Ptr> GetComments() const;
void RegisterComment(const Comment::Ptr& comment); void RegisterComment(const Comment::Ptr& comment);
void UnregisterComment(const Comment::Ptr& comment); void UnregisterComment(const Comment::Ptr& comment);
/* Notifications */ /* Notifications */
void SendNotifications(NotificationType type, const CheckResult::Ptr& cr, const String& author = "", const String& text = ""); void SendNotifications(NotificationType type, const CheckResult::Ptr& cr, const String& author = "", const String& text = "");
std::set<Notification::Ptr> GetNotifications() const; std::set<Notification::Ptr> GetNotifications() const;
void RegisterNotification(const Notification::Ptr& notification); void RegisterNotification(const Notification::Ptr& notification);
skipping to change at line 189 skipping to change at line 174
std::vector<intrusive_ptr<Dependency> > GetDependencies() const; std::vector<intrusive_ptr<Dependency> > GetDependencies() const;
void AddReverseDependency(const intrusive_ptr<Dependency>& dep); void AddReverseDependency(const intrusive_ptr<Dependency>& dep);
void RemoveReverseDependency(const intrusive_ptr<Dependency>& dep); void RemoveReverseDependency(const intrusive_ptr<Dependency>& dep);
std::vector<intrusive_ptr<Dependency> > GetReverseDependencies() const; std::vector<intrusive_ptr<Dependency> > GetReverseDependencies() const;
void ValidateCheckInterval(const Lazy<double>& lvalue, const ValidationUt ils& value) final; void ValidateCheckInterval(const Lazy<double>& lvalue, const ValidationUt ils& value) final;
void ValidateRetryInterval(const Lazy<double>& lvalue, const ValidationUt ils& value) final; void ValidateRetryInterval(const Lazy<double>& lvalue, const ValidationUt ils& value) final;
void ValidateMaxCheckAttempts(const Lazy<int>& lvalue, const ValidationUt ils& value) final; void ValidateMaxCheckAttempts(const Lazy<int>& lvalue, const ValidationUt ils& value) final;
bool NotificationReasonApplies(NotificationType type);
bool IsLikelyToBeCheckedSoon();
static void IncreasePendingChecks(); static void IncreasePendingChecks();
static void DecreasePendingChecks(); static void DecreasePendingChecks();
static int GetPendingChecks(); static int GetPendingChecks();
static void AquirePendingCheckSlot(int maxPendingChecks); static void AquirePendingCheckSlot(int maxPendingChecks);
static Object::Ptr GetPrototype(); static Object::Ptr GetPrototype();
protected: protected:
void Start(bool runtimeCreated) override; void Start(bool runtimeCreated) override;
void OnAllConfigLoaded() override; void OnAllConfigLoaded() override;
 End of changes. 6 change blocks. 
26 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)