"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/config/applyrule.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.

applyrule.hpp  (icinga2-2.11.5):applyrule.hpp  (icinga2-2.12.0)
skipping to change at line 24 skipping to change at line 24
* @ingroup config * @ingroup config
*/ */
class ApplyRule class ApplyRule
{ {
public: public:
typedef std::map<String, std::vector<String> > TypeMap; typedef std::map<String, std::vector<String> > TypeMap;
typedef std::map<String, std::vector<ApplyRule> > RuleMap; typedef std::map<String, std::vector<ApplyRule> > RuleMap;
String GetTargetType() const; String GetTargetType() const;
String GetName() const; String GetName() const;
std::shared_ptr<Expression> GetExpression() const; Expression::Ptr GetExpression() const;
std::shared_ptr<Expression> GetFilter() const; Expression::Ptr GetFilter() const;
String GetPackage() const; String GetPackage() const;
String GetFKVar() const; String GetFKVar() const;
String GetFVVar() const; String GetFVVar() const;
std::shared_ptr<Expression> GetFTerm() const; Expression::Ptr GetFTerm() const;
bool GetIgnoreOnError() const; bool GetIgnoreOnError() const;
DebugInfo GetDebugInfo() const; DebugInfo GetDebugInfo() const;
Dictionary::Ptr GetScope() const; Dictionary::Ptr GetScope() const;
void AddMatch(); void AddMatch();
bool HasMatches() const; bool HasMatches() const;
bool EvaluateFilter(ScriptFrame& frame) const; bool EvaluateFilter(ScriptFrame& frame) const;
static void AddRule(const String& sourceType, const String& targetType, c static void AddRule(const String& sourceType, const String& targetType, c
onst String& name, const std::shared_ptr<Expression>& expression, onst String& name, const Expression::Ptr& expression,
const std::shared_ptr<Expression>& filter, const String& package, const Expression::Ptr& filter, const String& package, const Strin
const String& fkvar, const String& fvvar, const std::shared_ptr<Expression>& ft g& fkvar, const String& fvvar, const Expression::Ptr& fterm,
erm,
bool ignoreOnError, const DebugInfo& di, const Dictionary::Ptr& s cope); bool ignoreOnError, const DebugInfo& di, const Dictionary::Ptr& s cope);
static std::vector<ApplyRule>& GetRules(const String& type); static std::vector<ApplyRule>& GetRules(const String& type);
static void RegisterType(const String& sourceType, const std::vector<Stri ng>& targetTypes); static void RegisterType(const String& sourceType, const std::vector<Stri ng>& targetTypes);
static bool IsValidSourceType(const String& sourceType); static bool IsValidSourceType(const String& sourceType);
static bool IsValidTargetType(const String& sourceType, const String& tar getType); static bool IsValidTargetType(const String& sourceType, const String& tar getType);
static std::vector<String> GetTargetTypes(const String& sourceType); static std::vector<String> GetTargetTypes(const String& sourceType);
static void CheckMatches(bool silent); static void CheckMatches(bool silent);
private: private:
String m_TargetType; String m_TargetType;
String m_Name; String m_Name;
std::shared_ptr<Expression> m_Expression; Expression::Ptr m_Expression;
std::shared_ptr<Expression> m_Filter; Expression::Ptr m_Filter;
String m_Package; String m_Package;
String m_FKVar; String m_FKVar;
String m_FVVar; String m_FVVar;
std::shared_ptr<Expression> m_FTerm; Expression::Ptr m_FTerm;
bool m_IgnoreOnError; bool m_IgnoreOnError;
DebugInfo m_DebugInfo; DebugInfo m_DebugInfo;
Dictionary::Ptr m_Scope; Dictionary::Ptr m_Scope;
bool m_HasMatches; bool m_HasMatches;
static TypeMap m_Types; static TypeMap m_Types;
static RuleMap m_Rules; static RuleMap m_Rules;
ApplyRule(String targetType, String name, std::shared_ptr<Expression> exp ApplyRule(String targetType, String name, Expression::Ptr expression,
ression, Expression::Ptr filter, String package, String fkvar, String fvva
std::shared_ptr<Expression> filter, String package, String fkvar, r, Expression::Ptr fterm,
String fvvar, std::shared_ptr<Expression> fterm,
bool ignoreOnError, DebugInfo di, Dictionary::Ptr scope); bool ignoreOnError, DebugInfo di, Dictionary::Ptr scope);
}; };
} }
#endif /* APPLYRULE_H */ #endif /* APPLYRULE_H */
 End of changes. 6 change blocks. 
15 lines changed or deleted 13 lines changed or added

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