1 #ifndef ARTDAQ_TOOLS_ARTDAQ_H
2 #define ARTDAQ_TOOLS_ARTDAQ_H
4 #include "artdaq/DAQdata/Globals.hh"
20 explicit swig_artdaq(std::string
const& config_string);
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);
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);
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);
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);
138 #endif //ARTDAQ_TOOLS_ARTDAQ_H
Simple class exposing methods for TRACEing and sending metrics that can be wrapped with SWIG...
void write_error(std::string const &name, std::string const &message)
Write an error message to TRACE, using the TLVL_ERROR level.
void write_trace(int level, std::string const &name, std::string const &message)
Write an error message to TRACE, using the provided level.
~swig_artdaq()
swig_artdaq destructor
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...
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...
void write_warning(std::string const &name, std::string const &message)
Write an error message to TRACE, using the TLVL_WARNING level.
void write_debug(std::string const &name, std::string const &message)
Write an error message to TRACE, using the TLVL_DEBUG level.
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...
swig_artdaq(std::string const &config_string)
swig_artdaq constructor
void write_info(std::string const &name, std::string const &message)
Write an error message to TRACE, using the TLVL_INFO level.