|
| MetricPluginTestAdapter (const fhicl::ParameterSet &ps) |
| Constructor More...
|
|
virtual void | sendMetric_ (const std::string &, const std::string &, const std::string &, const std::chrono::system_clock::time_point &) override |
| Send a String metric, record the call and discard the metric's data.
|
|
virtual void | sendMetric_ (const std::string &, const int &, const std::string &, const std::chrono::system_clock::time_point &) override |
| Send an int metric, record the call and discard the metric's data.
|
|
virtual void | sendMetric_ (const std::string &, const double &, const std::string &, const std::chrono::system_clock::time_point &) override |
| Send a double metric, record the call and discard the metric's data.
|
|
virtual void | sendMetric_ (const std::string &, const float &, const std::string &, const std::chrono::system_clock::time_point &) override |
| Send a float metric, record the call and discard the metric's data.
|
|
virtual void | sendMetric_ (const std::string &, const uint64_t &, const std::string &, const std::chrono::system_clock::time_point &) override |
| Send an unsigned metric, record the call and discard the metric's data.
|
|
void | startMetrics_ () override |
| Record that a startMetrics call was received.
|
|
void | stopMetrics_ () override |
| Record that a stopMetrics call was received.
|
|
fhicl::ParameterSet | get_pset () |
| Get the ParameterSet used to configure the plugin More...
|
|
double | get_accumulationTime_ () |
| Get the MetricPlugin's accumulationTime variable More...
|
|
std::string | get_app_name_ () |
| Get the MetricPlugin's app_name_ variable More...
|
|
bool | get_inhibit_ () |
| Get the MetricPlugin's inhibit_ variable More...
|
|
std::bitset< 64 > | get_level_mask_ () |
| Get the MetricPlugin's level_mask_ variable More...
|
|
| MetricPlugin (fhicl::ParameterSet const &ps, std::string const &app_name) |
| MetricPlugin Constructor. More...
|
|
virtual | ~MetricPlugin ()=default |
| Default virtual Desctructor.
|
|
virtual std::string | getLibName () const |
| Return the name of the current MetricPlugin instance.
|
|
void | addMetricData (std::unique_ptr< MetricData > const &data) |
| Send a metric value to the MetricPlugin. More...
|
|
void | sendMetrics (bool forceSend=false, std::chrono::steady_clock::time_point interval_end=std::chrono::steady_clock::now()) |
| For each known metric, determine whether the reporting interval has elapsed, and if so, report a value to the underlying metric storage. More...
|
|
void | startMetrics () |
| Perform startup actions. Simply calls the virtual startMetrics_ function.
|
|
void | stopMetrics () |
| Perform shutdown actions. Zeroes out all accumulators, and sends zeros for each metric. Calls stopMetrics_() for any plugin-defined shutdown actions.
|
|
bool | IsLevelEnabled (int level) |
| Determine if the given level is enabled for this MetricPlugin instance. More...
|
|
bool | metricsPending () |
| Determine if metrics are waiting to be sent. More...
|
|
|
using | Parameters = fhicl::WrappedTable< Config > |
| Used for ParameterSet validation (if desired)
|
|
fhicl::ParameterSet | pset |
| The ParameterSet used to configure the MetricPlugin.
|
|
double | accumulationTime_ |
| The amount of time to average metric values; except for accumulate=false metrics, will be the interval at which each metric is sent.
|
|
std::string | app_name_ |
| Name of the application which is sending metrics to this plugin.
|
|
bool | inhibit_ |
| Flag to indicate that the MetricPlugin is being stopped, and any metric back-ends which do not have a persistent state (i.e. file) should not report further metrics.
|
|
std::bitset< 64 > | level_mask_ |
| Bitset indicating for each possible metric level, whether this plugin will receive those metrics.
|
|
bool | sendZeros_ |
| Whether zeros should be sent to this metric backend when metric instances are missing or at the end of the run.
|
|
Metric plugin which stores metric call counts for testing
Definition at line 15 of file MetricPlugin_t.cc.