71 const
std::chrono::system_clock::time_point&
startTime() const noexcept;
78 const
std::chrono::system_clock::time_point&
endTime() const noexcept;
101 const
std::set<
size_t>&
indexes() const noexcept;
const std::chrono::system_clock::time_point & endTime() const noexcept
Get time of latest metrics.
T & value
Reference to the value.
Class to store metric statistics, and the indexes of those requested.
IndexedValue(size_t anIndex, T &aValue)
Construct a new Indexed Value object.
MetricsStatsArray() noexcept
Construct a new Metrics Stats Array object.
Generic class to store and manage metrics.
size_t index
Index of the value in the container.
std::set< size_t > indexes_
Set of requested metrics.
void setEndTime(std::chrono::system_clock::time_point endTime) noexcept
Set the time of latest metrics used to compute statistics.
std::vector< IndexedValue > values_
Array of requested metrics.
const std::set< size_t > & indexes() const noexcept
Returns set of requested metrics.
const std::vector< IndexedValue > & indexedValues() const noexcept
Returns the requested metric indexes and values.
size_t indexCount() const noexcept
Returns the number of requested metrics.
void setStartTime(std::chrono::system_clock::time_point startTime) noexcept
Set the time of earlier metrics used to compute statistics.
Small struct to store an index of a value in a container and a reference to its value.
const std::chrono::system_clock::time_point & startTime() const noexcept
Get time of earlier metrics.
std::chrono::system_clock::time_point startTime_
Time of the earlier metric.
void setIndexes(std::set< size_t > indexes) noexcept
Set which indexes are requested.