1 #ifndef ARTDAQ_TOOLS_ARTDAQ_H
2 #define ARTDAQ_TOOLS_ARTDAQ_H
4 #include "artdaq/DAQdata/Globals.hh"
34 void send_metric(std::string name,
int level, std::string value, std::string unit);
42 void send_metric(std::string name,
int level,
int value, std::string unit);
50 void send_metric(std::string name,
int level,
double value, std::string unit);
59 void send_sum_metric(std::string name,
int level, std::string value, std::string unit);
67 void send_sum_metric(std::string name,
int level,
int value, std::string unit);
75 void send_sum_metric(std::string name,
int level,
double value, std::string unit);
85 void send_rate_metric(std::string name,
int level, std::string value, std::string unit);
94 void send_rate_metric(std::string name,
int level,
int value, std::string unit);
103 void send_rate_metric(std::string name,
int level,
double value, std::string unit);
110 void write_error(std::string name, std::string message);
122 void write_info(std::string name, std::string message);
128 void write_debug(std::string name, std::string message);
135 void write_trace(
int level, std::string name, std::string message);
138 #endif //ARTDAQ_TOOLS_ARTDAQ_H
Simple class exposing methods for TRACEing and sending metrics that can be wrapped with SWIG...
~swig_artdaq()
swig_artdaq destructor
void write_trace(int level, std::string name, std::string message)
Write an error message to TRACE, using the provided level.
void write_info(std::string name, std::string message)
Write an error message to TRACE, using the TLVL_INFO level.
void send_rate_metric(std::string name, int level, std::string value, std::string unit)
Send a metric using the artdaq MetricManager to the configured backends. Metric instances will be sum...
void write_debug(std::string name, std::string message)
Write an error message to TRACE, using the TLVL_DEBUG level.
void write_warning(std::string name, std::string message)
Write an error message to TRACE, using the TLVL_WARNING level.
swig_artdaq(std::string config_string)
swig_artdaq constructor
void write_error(std::string name, std::string message)
Write an error message to TRACE, using the TLVL_ERROR level.
void send_metric(std::string name, int level, std::string value, std::string unit)
Send a metric using the artdaq MetricManager to the configured backends. Only the last point in a rep...
void send_sum_metric(std::string name, int level, std::string value, std::string unit)
Send a metric using the artdaq MetricManager to the configured backends. Metric instances will be sum...