artdaq  v3_09_00
swig_artdaq.h
Go to the documentation of this file.
1 #ifndef ARTDAQ_TOOLS_ARTDAQ_H
2 #define ARTDAQ_TOOLS_ARTDAQ_H
3 
4 #include "artdaq/DAQdata/Globals.hh"
5 
14 {
15 public:
20  explicit swig_artdaq(std::string const& config_string);
21 
25  ~swig_artdaq();
26 
34  void send_metric(std::string const& name, int level, std::string const& value, std::string const& unit);
42  void send_metric(std::string const& name, int level, int value, std::string const& unit);
50  void send_metric(std::string const& name, int level, double value, std::string const& unit);
51 
59  void send_sum_metric(std::string const& name, int level, std::string const& value, std::string const& unit);
67  void send_sum_metric(std::string const& name, int level, int value, std::string const& unit);
75  void send_sum_metric(std::string const& name, int level, double value, std::string const& unit);
76 
85  void send_rate_metric(std::string const& name, int level, std::string const& value, std::string const& unit);
94  void send_rate_metric(std::string const& name, int level, int value, std::string const& unit);
103  void send_rate_metric(std::string const& name, int level, double value, std::string const& unit);
104 
110  void write_error(std::string const& name, std::string const& message);
116  void write_warning(std::string const& name, std::string const& message);
122  void write_info(std::string const& name, std::string const& message);
128  void write_debug(std::string const& name, std::string const& message);
135  void write_trace(int level, std::string const& name, std::string const& message);
136 };
137 
138 #endif //ARTDAQ_TOOLS_ARTDAQ_H
Simple class exposing methods for TRACEing and sending metrics that can be wrapped with SWIG...
Definition: swig_artdaq.h:13
void write_error(std::string const &name, std::string const &message)
Write an error message to TRACE, using the TLVL_ERROR level.
Definition: swig_artdaq.cpp:60
void write_trace(int level, std::string const &name, std::string const &message)
Write an error message to TRACE, using the provided level.
Definition: swig_artdaq.cpp:80
~swig_artdaq()
swig_artdaq destructor
Definition: swig_artdaq.cpp:14
void send_sum_metric(std::string const &name, int level, std::string const &value, std::string const &unit)
Send a metric using the artdaq MetricManager to the configured backends. Metric instances will be sum...
Definition: swig_artdaq.cpp:34
void send_metric(std::string const &name, int level, std::string const &value, std::string const &unit)
Send a metric using the artdaq MetricManager to the configured backends. Only the last point in a rep...
Definition: swig_artdaq.cpp:19
void write_warning(std::string const &name, std::string const &message)
Write an error message to TRACE, using the TLVL_WARNING level.
Definition: swig_artdaq.cpp:65
void write_debug(std::string const &name, std::string const &message)
Write an error message to TRACE, using the TLVL_DEBUG level.
Definition: swig_artdaq.cpp:75
void send_rate_metric(std::string const &name, int level, std::string const &value, std::string const &unit)
Send a metric using the artdaq MetricManager to the configured backends. Metric instances will be sum...
Definition: swig_artdaq.cpp:47
swig_artdaq(std::string const &config_string)
swig_artdaq constructor
Definition: swig_artdaq.cpp:5
void write_info(std::string const &name, std::string const &message)
Write an error message to TRACE, using the TLVL_INFO level.
Definition: swig_artdaq.cpp:70