libstatistics_collector  master
Lightweight aggregation utilities to collect statistics and measure message metrics.
Classes | Functions
libstatistics_collector::moving_average_statistics Namespace Reference

Classes

class  MovingAverageStatistics
 
struct  StatisticData
 

Functions

std::string StatisticsDataToString (const StatisticData &results)
 

Function Documentation

◆ StatisticsDataToString()

std::string libstatistics_collector::moving_average_statistics::StatisticsDataToString ( const StatisticData results)

Function which pretty prints the contents of a StatisticData struct.

Parameters
resultsthe StatisticData to pretty print
Returns
std::string formatted struct contents in an easily readable format, e.g., /"avg=1, min=2, max=3, std_dev=4, count=5/"