artdaq_utilities
v1_05_00
|
The artdaq namespace. More...
Classes | |
class | PackageBuildInfo |
Class holding information about the artdaq package build. More... | |
class | FileMetric |
FileMetric writes metric data to a file on disk. More... | |
class | GraphiteMetric |
Send a metric to Graphite. More... | |
struct | MetricData |
Small structure used to hold a metric data point before sending to the metric plugins More... | |
class | MetricManager |
The MetricManager class handles loading metric plugins and asynchronously sending metric data to them. It is designed to be a "black hole" for metrics, taking as little time as possible so that metrics do not impact the data-taking performance. More... | |
class | MetricPlugin |
The MetricPlugin class defines the interface that MetricManager uses to send metric data to the various metric plugins. More... | |
class | MsgFacilityMetric |
A MetricPlugin class which sends metric data to MessageFacility. More... | |
class | ProcFileMetric |
A MetricPlugin which writes a long unsigned int metric with a given name to a given pipe. More... | |
class | PeriodicReportMetric |
PeriodicReportMetric writes metric data to a file on disk. More... | |
class | SystemMetricCollector |
class | TestMetricImpl |
TestMetric writes metric data to a statically-allocated memory block. More... | |
class | TestMetric |
Typedefs | |
typedef std::unique_ptr < artdaq::MetricPlugin > | makeFunc_t (fhicl::ParameterSet const &ps, std::string const &app_name) |
Make a MetricPlugin instance, loading the plugin if necessary. More... | |
Enumerations | |
enum | MetricType { MetricType::InvalidMetric, MetricType::StringMetric, MetricType::IntMetric, MetricType::DoubleMetric, MetricType::FloatMetric, MetricType::UnsignedMetric } |
This enumeration is used to identify the type of the metric instance (which value should be extraced from the union) More... | |
enum | MetricMode : uint32_t { None = 0x0, MetricMode::LastPoint = 0x1, MetricMode::Accumulate = 0x2, MetricMode::Average = 0x4, MetricMode::Rate = 0x8, MetricMode::Minimum = 0x10, MetricMode::Maximum = 0x20 } |
The Mode of the metric indicates how multiple metric values should be combined within a reporting interval More... | |
Functions | |
std::unique_ptr< MetricPlugin > | makeMetricPlugin (std::string const &generator_plugin_spec, fhicl::ParameterSet const &ps, std::string const &app_name) |
Load a given MetricPlugin and return a pointer to it. More... | |
constexpr MetricMode | operator| (MetricMode a, MetricMode b) |
Bitwise OR operator for MetricMode More... | |
constexpr MetricMode | operator& (MetricMode a, MetricMode b) |
Bitwise AND operator for MetricMode More... | |
The artdaq namespace.
typedef std::unique_ptr<artdaq::MetricPlugin> artdaq::makeFunc_t(fhicl::ParameterSet const &ps, std::string const &app_name) |
Make a MetricPlugin instance, loading the plugin if necessary.
ps | ParameterSet used to configure the MetricPlugin instance |
app_name | Name of the application sending metrics |
Definition at line 18 of file MetricMacros.hh.
|
strong |
The Mode of the metric indicates how multiple metric values should be combined within a reporting interval
Definition at line 29 of file MetricData.hh.
|
strong |
This enumeration is used to identify the type of the metric instance (which value should be extraced from the union)
Definition at line 16 of file MetricData.hh.
std::unique_ptr< artdaq::MetricPlugin > artdaq::makeMetricPlugin | ( | std::string const & | generator_plugin_spec, |
fhicl::ParameterSet const & | ps, | ||
std::string const & | app_name | ||
) |
Load a given MetricPlugin and return a pointer to it.
generator_plugin_spec | Name of the MetricPlugin |
ps | ParameterSet with which to configure the MetricPlugin |
app_name | Application name of the calling application |
Definition at line 8 of file makeMetricPlugin.cc.
constexpr MetricMode artdaq::operator& | ( | MetricMode | a, |
MetricMode | b | ||
) |
Bitwise AND operator for MetricMode
a | LHS of AND |
b | RHS of AND |
Definition at line 56 of file MetricData.hh.
constexpr MetricMode artdaq::operator| | ( | MetricMode | a, |
MetricMode | b | ||
) |
Bitwise OR operator for MetricMode
a | LHS of OR |
b | RHS of OR |
Definition at line 46 of file MetricData.hh.