2 #include "ErrorHandler/MessageAnalyzer/ma_function_count.h"
3 #include "ErrorHandler/MessageAnalyzer/ma_condition.h"
4 #include "ErrorHandler/MessageAnalyzer/ma_participants.h"
6 #include <boost/algorithm/string.hpp>
8 using namespace novadaq::errorhandler;
26 std::string type = boost::any_cast<std::string>(args[0]);
27 boost::to_upper(type);
31 else if (type ==
"TARGET")
33 else if (type ==
"MESSAGE")
42 ma_func_count::evaluate(
ma_condition const& cond, ma_cond_domain dom)
45 int count = cond.get_alarm_count(dom, count_type);
47 TLOG(TLVL_DEBUG) <<
"count = " << count;
49 return boost::any(count);