A MetricPlugin class which sends metric data to MessageFacility. More...
Public Member Functions | |
MsgFacilityMetric (fhicl::ParameterSet config) | |
MsgFacilityMetric Constructor. | |
virtual | ~MsgFacilityMetric () |
MsgFacilityMetric Destructor. Calls stopMetrics(). | |
std::string | getLibName () const override |
Return the library name of the MetricPlugin. | |
void | sendMetric_ (const std::string &name, const std::string &value, const std::string &unit) override |
Send a metric to MessageFacilty. Format is: "name: value unit.". | |
void | sendMetric_ (const std::string &name, const int &value, const std::string &unit) override |
Send a metric to MessageFacility. All metrics are converted to strings. | |
void | sendMetric_ (const std::string &name, const double &value, const std::string &unit) override |
Send a metric to MessageFacility. All metrics are converted to strings. | |
void | sendMetric_ (const std::string &name, const float &value, const std::string &unit) override |
Send a metric to MessageFacility. All metrics are converted to strings. | |
void | sendMetric_ (const std::string &name, const unsigned long int &value, const std::string &unit) override |
Send a metric to MessageFacility. All metrics are converted to strings. | |
void | startMetrics_ () override |
Perform startup actions. No-Op. | |
void | stopMetrics_ () override |
Perform shutdown actions. No-Op. |
A MetricPlugin class which sends metric data to MessageFacility.
Definition at line 20 of file msgFacility_metric.cc.
artdaq::MsgFacilityMetric::MsgFacilityMetric | ( | fhicl::ParameterSet | config | ) | [inline, explicit] |
MsgFacilityMetric Constructor.
config | ParameterSet used to configure MsgFacilityMetric |
MsgFacilityMetric accepts the following Parameters: "output_message_category_name" (Default: "ARTDAQ Metric"): Name of the "category" (for filtering) in MessageFacility "output_message_severity" (Default: 0): Severity which messages should be sent with. This parameter may also be specified using the string name of the severity. 0: Info, 1: Debug, 2: Warning, 3: Error
Definition at line 38 of file msgFacility_metric.cc.
std::string artdaq::MsgFacilityMetric::getLibName | ( | ) | const [inline, override, virtual] |
Return the library name of the MetricPlugin.
Reimplemented from artdaq::MetricPlugin.
Definition at line 78 of file msgFacility_metric.cc.
void artdaq::MsgFacilityMetric::sendMetric_ | ( | const std::string & | name, | |
const unsigned long int & | value, | |||
const std::string & | unit | |||
) | [inline, override] |
Send a metric to MessageFacility. All metrics are converted to strings.
name | Name of the metric | |
value | Value of the metric | |
unit | Units of the metric |
Definition at line 147 of file msgFacility_metric.cc.
void artdaq::MsgFacilityMetric::sendMetric_ | ( | const std::string & | name, | |
const float & | value, | |||
const std::string & | unit | |||
) | [inline, override, virtual] |
Send a metric to MessageFacility. All metrics are converted to strings.
name | Name of the metric | |
value | Value of the metric | |
unit | Units of the metric |
Implements artdaq::MetricPlugin.
Definition at line 136 of file msgFacility_metric.cc.
void artdaq::MsgFacilityMetric::sendMetric_ | ( | const std::string & | name, | |
const double & | value, | |||
const std::string & | unit | |||
) | [inline, override, virtual] |
Send a metric to MessageFacility. All metrics are converted to strings.
name | Name of the metric | |
value | Value of the metric | |
unit | Units of the metric |
Implements artdaq::MetricPlugin.
Definition at line 125 of file msgFacility_metric.cc.
void artdaq::MsgFacilityMetric::sendMetric_ | ( | const std::string & | name, | |
const int & | value, | |||
const std::string & | unit | |||
) | [inline, override, virtual] |
Send a metric to MessageFacility. All metrics are converted to strings.
name | Name of the metric | |
value | Value of the metric | |
unit | Units of the metric |
Implements artdaq::MetricPlugin.
Definition at line 114 of file msgFacility_metric.cc.
void artdaq::MsgFacilityMetric::sendMetric_ | ( | const std::string & | name, | |
const std::string & | value, | |||
const std::string & | unit | |||
) | [inline, override, virtual] |
Send a metric to MessageFacilty. Format is: "name: value unit.".
name | Name of the metric | |
value | Value of the metric | |
unit | Units for the metric |
Implements artdaq::MetricPlugin.
Definition at line 86 of file msgFacility_metric.cc.