5 #ifndef __ARTDAQ_UTILITIES_PLUGINS_TESTMETRIC_HH_
6 #define __ARTDAQ_UTILITIES_PLUGINS_TESTMETRIC_HH_
38 TLOG(20) <<
"Locking TestMetric::received_metrics_mutex";
40 TLOG(20) <<
"Locked TestMetric::received_metrics_mutex";
48 TLOG(20) <<
"Unlocking TestMetric::received_metrics_mutex";
57 #endif // __ARTDAQ_UTILITIES_PLUGINS_TESTMETRIC_HH_
std::string unit
Units for the metric.
static std::mutex received_metrics_mutex
Mutex to protect the received_metrics list.
Provides in-memory storage of metric data for testing
static void LockReceivedMetricMutex()
Lock the ReceivedMetricMutex
static std::list< MetricPoint > received_metrics
List of received metric data.
std::chrono::system_clock::time_point sent_time
When the metric was received.
static void UnlockReceivedMetricMutex()
Unlock the ReceivedMetricMutex
std::string value
Value of the metric.
std::string metric
Name of the metric.
Describes a single metric point