33 source.fetchData((*this->sourceInterests_)[sourceIndex], this->sourceIterators_[sourceIndex].first);
36 this->
timestamp_ = std::chrono::system_clock::now();
MetricsSource::SourceInterests sourceInterests_
Boolean arrays to store source interests.
std::chrono::system_clock::time_point timestamp_
Time at which metrics were collected.
std::shared_ptr< std::vector< MetricsSource::Interests > > SourceInterests
Type used to store and share interests of multiple sources.
void updateData()
Fetch new metric values from each source.
Generic class to store and manage metrics.
void forEach(Function func)
Execute a function for each source.
MetricsDataArray() noexcept
Construct a new Metrics Data Array object.
MetricsSource::MetricsSourceArray sources_
Array of sources to fetch data from.