artdaq_utilities
v1_04_10
|
A MetricPlugin class which sends metric data to MessageFacility. More...
Public Member Functions | |
MsgFacilityMetric (fhicl::ParameterSet const &config, std::string const &app_name) | |
MsgFacilityMetric Constructor. More... | |
virtual | ~MsgFacilityMetric () |
MsgFacilityMetric Destructor. Calls stopMetrics() | |
std::string | getLibName () const override |
Return the library name of the MetricPlugin. More... | |
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.". More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
void | startMetrics_ () override |
Perform startup actions. No-Op. | |
void | stopMetrics_ () override |
Perform shutdown actions. No-Op. | |
Public Member Functions inherited from artdaq::MetricPlugin | |
MetricPlugin (fhicl::ParameterSet const &ps, std::string const &app_name) | |
void | addMetricData (std::unique_ptr< MetricData > const &data) |
void | sendMetrics (bool forceSend=false, std::chrono::steady_clock::time_point interval_end=std::chrono::steady_clock::now()) |
void | startMetrics () |
void | stopMetrics () |
void | setRunLevel (int level) |
int | getRunLevel () const |
Additional Inherited Members | |
Public Types inherited from artdaq::MetricPlugin | |
using | Parameters = fhicl::WrappedTable< Config > |
Protected Member Functions inherited from artdaq::MetricPlugin | |
virtual void | sendMetric_ (const std::string &name, const long unsigned int &value, const std::string &unit)=0 |
Protected Attributes inherited from artdaq::MetricPlugin | |
int | runLevel_ |
fhicl::ParameterSet | pset |
The ParameterSet used to configure the MetricPlugin. | |
double | accumulationTime_ |
std::string | app_name_ |
Name of the application which is sending metrics to this plugin. | |
bool | inhibit_ |
Whether to inhibit all metric sending. | |
A MetricPlugin class which sends metric data to MessageFacility.
Definition at line 20 of file msgFacility_metric.cc.
|
inlineexplicit |
MsgFacilityMetric Constructor.
config | ParameterSet used to configure MsgFacilityMetric |
app_name | Name of the application sending metrics |
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 39 of file msgFacility_metric.cc.
|
inlineoverridevirtual |
Return the library name of the MetricPlugin.
Reimplemented from artdaq::MetricPlugin.
Definition at line 79 of file msgFacility_metric.cc.
|
inlineoverridevirtual |
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 87 of file msgFacility_metric.cc.
|
inlineoverridevirtual |
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 115 of file msgFacility_metric.cc.
|
inlineoverridevirtual |
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 126 of file msgFacility_metric.cc.
|
inlineoverridevirtual |
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 137 of file msgFacility_metric.cc.
|
inlineoverride |
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 148 of file msgFacility_metric.cc.