|
MetroCollect
2.3.4
|
Simple struct to hold references to each source singleton. More...
#include <MetricsSourceArray.h>

Public Member Functions | |
| MetricsSourceArray () | |
| Construct a new Metrics Source Array object. More... | |
| template<typename Function > | |
| void | forEach (Function func) |
| Execute a function for each source. More... | |
| template<typename Function > | |
| void | forEach (Function func) const |
| Execute a const function for each source. More... | |
Public Attributes | |
| SourceProcStat & | procStat |
| CPU metrics source (index: 1) More... | |
| SourceProcMeminfo & | procMemInfo |
| Memory metrics source (index: 2) More... | |
| SourceProcNetDev & | procNetDev |
| Network metrics source (index: 3) More... | |
| SourceEthtool & | ethtool |
| Ethtool metrics source (index: 4) More... | |
Static Public Attributes | |
| static constexpr size_t | count = 4 |
| Number of sources. More... | |
Simple struct to hold references to each source singleton.
Definition at line 33 of file MetricsSourceArray.h.
| MetroCollect::MetricsSource::MetricsSourceArray::MetricsSourceArray | ( | ) |
Construct a new Metrics Source Array object.
Definition at line 26 of file MetricsSourceArray.cc.
|
inline |
Execute a function for each source.
| Function | Function type, which must accept two arguments: implicitly convertible to the source type and an integer |
| func | function to execute |
Definition at line 55 of file MetricsSourceArray.h.

|
inline |
Execute a const function for each source.
| Function | Const function type, which must accept two arguments: implicitly convertible to the source type and an integer |
| func | function to execute |
Definition at line 69 of file MetricsSourceArray.h.
|
static |
Number of sources.
Definition at line 39 of file MetricsSourceArray.h.
| SourceEthtool& MetroCollect::MetricsSource::MetricsSourceArray::ethtool |
Ethtool metrics source (index: 4)
Definition at line 37 of file MetricsSourceArray.h.
| SourceProcMeminfo& MetroCollect::MetricsSource::MetricsSourceArray::procMemInfo |
Memory metrics source (index: 2)
Definition at line 35 of file MetricsSourceArray.h.
| SourceProcNetDev& MetroCollect::MetricsSource::MetricsSourceArray::procNetDev |
Network metrics source (index: 3)
Definition at line 36 of file MetricsSourceArray.h.
| SourceProcStat& MetroCollect::MetricsSource::MetricsSourceArray::procStat |
CPU metrics source (index: 1)
Definition at line 34 of file MetricsSourceArray.h.