Host::Ptr GetHost(void) const;
- virtual bool ResolveMacro(const String& macro, const CheckResult::Ptr& cr, String *result) const;
+ virtual bool ResolveMacro(const String& macro, const CheckResult::Ptr& cr, Value *result) const;
static ServiceState StateFromString(const String& state);
static String StateToString(ServiceState state);
static void RegisterApplyRuleHandler(void);
+ static void EvaluateApplyRules(const Host::Ptr& host);
+
protected:
- virtual void OnConfigLoaded(void);
+ virtual void OnAllConfigLoaded(void);
private:
Host::Ptr m_Host;
- static bool EvaluateApplyRuleOne(const Host::Ptr& host, const ApplyRule& rule);
- static void EvaluateApplyRule(const ApplyRule& rule);
- static void EvaluateApplyRules(const std::vector<ApplyRule>& rules);
+ static void EvaluateApplyRuleInstance(const Host::Ptr& host, const String& name, ScriptFrame& frame, const ApplyRule& rule);
+ static bool EvaluateApplyRule(const Host::Ptr& host, const ApplyRule& rule);
};
I2_ICINGA_API boost::tuple<Host::Ptr, Service::Ptr> GetHostService(const Checkable::Ptr& checkable);