Small structure used to hold a metric data point before sending to the metric plugins
More...
#include <artdaq-utilities/Plugins/MetricData.hh>
|
| MetricData (const MetricData &r)=default |
| Default copy constructor More...
|
|
| MetricData (MetricData &&r) noexcept=default |
| Default move constructor More...
|
|
MetricData & | operator= (const MetricData &r)=default |
| Default copy assignment operator More...
|
|
MetricData & | operator= (MetricData &&r) noexcept=default |
| Default move assignment operator More...
|
|
| MetricData (std::string const &name, std::string const &value, std::string const &unit, int level, MetricMode mode, std::string const &metricPrefix, bool useNameOverride) |
| Construct a MetricData point using a string value More...
|
|
| MetricData (std::string const &name, int const &value, std::string const &unit, int level, MetricMode mode, std::string const &metricPrefix, bool useNameOverride) |
| Construct a MetricData point using a int value More...
|
|
| MetricData (std::string const &name, double const &value, std::string const &unit, int level, MetricMode mode, std::string const &metricPrefix, bool useNameOverride) |
| Construct a MetricData point using a double value More...
|
|
| MetricData (std::string const &name, float const &value, std::string const &unit, int level, MetricMode mode, std::string const &metricPrefix, bool useNameOverride) |
| Construct a MetricData point using a float value More...
|
|
| MetricData (std::string const &name, long unsigned int const &value, std::string const &unit, int level, MetricMode mode, std::string const &metricPrefix, bool useNameOverride) |
| Construct a MetricData point using a unsigned long int value More...
|
|
| MetricData () |
| Default constructor, constructs an MetricType::InvalidMetric More...
|
|
Small structure used to hold a metric data point before sending to the metric plugins
Definition at line 42 of file MetricData.hh.
artdaq::MetricData::MetricData |
( |
const MetricData & |
r | ) |
|
|
default |
Default copy constructor
- Parameters
-
Default move constructor
- Parameters
-
artdaq::MetricData::MetricData |
( |
std::string const & |
name, |
|
|
std::string const & |
value, |
|
|
std::string const & |
unit, |
|
|
int |
level, |
|
|
MetricMode |
mode, |
|
|
std::string const & |
metricPrefix, |
|
|
bool |
useNameOverride |
|
) |
| |
|
inline |
Construct a MetricData point using a string value
- Parameters
-
name | Name of the metric |
value | Value of the metric |
unit | Units of the metric |
level | Reporting level of the metric |
mode | Accumulation mode of the metric |
metricPrefix | Name prefix for the metric |
useNameOverride | Whether to override the default name |
Definition at line 129 of file MetricData.hh.
artdaq::MetricData::MetricData |
( |
std::string const & |
name, |
|
|
int const & |
value, |
|
|
std::string const & |
unit, |
|
|
int |
level, |
|
|
MetricMode |
mode, |
|
|
std::string const & |
metricPrefix, |
|
|
bool |
useNameOverride |
|
) |
| |
|
inline |
Construct a MetricData point using a int value
- Parameters
-
name | Name of the metric |
value | Value of the metric |
unit | Units of the metric |
level | Reporting level of the metric |
mode | Accumulation mode of the metric |
metricPrefix | Name prefix for the metric |
useNameOverride | Whether to override the default name |
Definition at line 151 of file MetricData.hh.
artdaq::MetricData::MetricData |
( |
std::string const & |
name, |
|
|
double const & |
value, |
|
|
std::string const & |
unit, |
|
|
int |
level, |
|
|
MetricMode |
mode, |
|
|
std::string const & |
metricPrefix, |
|
|
bool |
useNameOverride |
|
) |
| |
|
inline |
Construct a MetricData point using a double value
- Parameters
-
name | Name of the metric |
value | Value of the metric |
unit | Units of the metric |
level | Reporting level of the metric |
mode | Accumulation mode of the metric |
metricPrefix | Name prefix for the metric |
useNameOverride | Whether to override the default name |
Definition at line 173 of file MetricData.hh.
artdaq::MetricData::MetricData |
( |
std::string const & |
name, |
|
|
float const & |
value, |
|
|
std::string const & |
unit, |
|
|
int |
level, |
|
|
MetricMode |
mode, |
|
|
std::string const & |
metricPrefix, |
|
|
bool |
useNameOverride |
|
) |
| |
|
inline |
Construct a MetricData point using a float value
- Parameters
-
name | Name of the metric |
value | Value of the metric |
unit | Units of the metric |
level | Reporting level of the metric |
mode | Accumulation mode of the metric |
metricPrefix | Name prefix for the metric |
useNameOverride | Whether to override the default name |
Definition at line 195 of file MetricData.hh.
artdaq::MetricData::MetricData |
( |
std::string const & |
name, |
|
|
long unsigned int const & |
value, |
|
|
std::string const & |
unit, |
|
|
int |
level, |
|
|
MetricMode |
mode, |
|
|
std::string const & |
metricPrefix, |
|
|
bool |
useNameOverride |
|
) |
| |
|
inline |
Construct a MetricData point using a unsigned long int value
- Parameters
-
name | Name of the metric |
value | Value of the metric |
unit | Units of the metric |
level | Reporting level of the metric |
mode | Accumulation mode of the metric |
metricPrefix | Name prefix for the metric |
useNameOverride | Whether to override the default name |
Definition at line 217 of file MetricData.hh.
artdaq::MetricData::MetricData |
( |
| ) |
|
|
inline |
Default copy assignment operator
- Parameters
-
- Returns
- MetricData copy
Default move assignment operator
- Parameters
-
- Returns
- MetricData reference
This union holds the values for all other metric types
size_t artdaq::MetricData::DataPointCount |
int artdaq::MetricData::Level |
std::string artdaq::MetricData::MetricPrefix |
std::string artdaq::MetricData::Name |
std::string artdaq::MetricData::StringValue |
std::string artdaq::MetricData::Unit |
bool artdaq::MetricData::UseNameOverride |
Whether to override the default naming convention for this metric
Definition at line 113 of file MetricData.hh.
The documentation for this struct was generated from the following file: