artdaq_epics_plugin
1.05.06
|
An instance of the MetricPlugin class that sends metric data using the Channel Access protocol from EPICS. More...
Public Member Functions | |
EpicsMetric (fhicl::ParameterSet const &pset, std::string const &app_name, std::string const &metric_name) | |
Construct an instance of the EpicsMetric plugin. More... | |
std::string | getLibName () const override |
Gets the unique library name of this plugin. More... | |
void | stopMetrics_ () override |
Clears the registered ChannelAccess channels. | |
void | startMetrics_ () override |
No initialization is needed to start sending metrics. | |
void | sendMetric_ (const std::string &name, const std::string &value, const std::string &unit, const std::chrono::system_clock::time_point &) override |
Send a string metric data point to ChannelAccess. More... | |
void | sendMetric_ (const std::string &name, const int &value, const std::string &unit, const std::chrono::system_clock::time_point &) override |
Send an integer metric data point to ChannelAccess. More... | |
void | sendMetric_ (const std::string &name, const double &value, const std::string &unit, const std::chrono::system_clock::time_point &) override |
Send a double metric data point to ChannelAccess. More... | |
void | sendMetric_ (const std::string &name, const float &value, const std::string &unit, const std::chrono::system_clock::time_point &) override |
Send a float metric data point to ChannelAccess. More... | |
void | sendMetric_ (const std::string &name, const uint64_t &value, const std::string &unit, const std::chrono::system_clock::time_point &) override |
Send an unsigned integer metric data point to ChannelAccess. More... | |
An instance of the MetricPlugin class that sends metric data using the Channel Access protocol from EPICS.
Definition at line 40 of file epics_metric.cc.
|
inlineexplicit |
Construct an instance of the EpicsMetric plugin.
pset | Parameter set to configure with. MetricPlugin parameters plus "channel_name_prefix", default "artdaq". |
app_name | Name of the application sending metrics |
metric_name | Name of this metric instance |
Definition at line 105 of file epics_metric.cc.
|
inlineoverride |
Gets the unique library name of this plugin.
Definition at line 118 of file epics_metric.cc.
|
inlineoverride |
Send a string metric data point to ChannelAccess.
name | Name of the metric |
value | Value of the metric |
unit | Units used (not really relevant for string metrics) |
Send a string metric data point to ChannelAccess. The name will be channel_name_prefix:name. If the named channel is not yet open, it will be opened. If the channel is not registered with an IOC, then the metric data will not be sent and a warning message will be printed the first time.
Definition at line 155 of file epics_metric.cc.
|
inlineoverride |
Send an integer metric data point to ChannelAccess.
name | Name of the metric |
value | Value of the metric |
unit | Units used |
Send a string metric data point to ChannelAccess. The name will be channel_name_prefix:name. If the named channel is not yet open, it will be opened. If the channel is not registered with an IOC, then the metric data will not be sent and a warning message will be printed the first time.
Definition at line 185 of file epics_metric.cc.
|
inlineoverride |
Send a double metric data point to ChannelAccess.
name | Name of the metric |
value | Value of the metric |
unit | Units used |
Send a string metric data point to ChannelAccess. The name will be channel_name_prefix:name. If the named channel is not yet open, it will be opened. If the channel is not registered with an IOC, then the metric data will not be sent and a warning message will be printed the first time.
Definition at line 215 of file epics_metric.cc.
|
inlineoverride |
Send a float metric data point to ChannelAccess.
name | Name of the metric |
value | Value of the metric |
unit | Units used |
Send a string metric data point to ChannelAccess. The name will be channel_name_prefix:name. If the named channel is not yet open, it will be opened. If the channel is not registered with an IOC, then the metric data will not be sent and a warning message will be printed the first time.
Definition at line 245 of file epics_metric.cc.
|
inlineoverride |
Send an unsigned integer metric data point to ChannelAccess.
name | Name of the metric |
value | Value of the metric. Will be truncated t fit in the size of a dbr_ulong_t, a 32-bit unsigned integer. |
unit | Units used |
Send a string metric data point to ChannelAccess. The name will be channel_name_prefix:name. If the named channel is not yet open, it will be opened. If the channel is not registered with an IOC, then the metric data will not be sent and a warning message will be printed the first time.
Definition at line 275 of file epics_metric.cc.