MetroCollect  2.3.4
MetroCollectStats.cc File Reference
#include <iostream>
#include <iomanip>
#include <sstream>
#include <MetroCollect/MetricsController.h>
Include dependency graph for MetroCollectStats.cc:

Go to the source code of this file.

Classes

struct  MetroCollectStats
 Small struct to implement MetricsController delegate. More...
 

Functions

void printMetrics (const std::vector< std::pair< std::string, std::string >> &names, const MetroCollect::MetricsController::MetricsStats &s)
 Print metric stats on screen. More...
 
auto generateMetrics ()
 Generate metric request to give to the MetricsController. More...
 
template<typename T >
auto getAllFieldNames (const MetroCollect::MetricsArray< T > &metricsArray)
 Get fields name of all metrics. More...
 
int main (int argc, char *argv[])
 MetroCollectStats main function. More...
 

Function Documentation

◆ generateMetrics()

auto generateMetrics ( )

Generate metric request to give to the MetricsController.

Returns
auto requested metrics list

Definition at line 55 of file MetroCollectStats.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAllFieldNames()

template<typename T >
auto getAllFieldNames ( const MetroCollect::MetricsArray< T > &  metricsArray)

Get fields name of all metrics.

Template Parameters
TType of MetricsArray
Parameters
metricsArrayMetricArray to get metric names from
Returns
Array of metric names

Definition at line 75 of file MetroCollectStats.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

MetroCollectStats main function.

MetroCollect's main function.

Parameters
argcArgument count (expected: 4)
argvArguments values (sampling interval; window length; window overlap; iteration count)
Returns
int Return code

Definition at line 128 of file MetroCollectStats.cc.

Here is the call graph for this function:

◆ printMetrics()

void printMetrics ( const std::vector< std::pair< std::string, std::string >> &  names,
const MetroCollect::MetricsController::MetricsStats s 
)

Print metric stats on screen.

Parameters
namesarray of names of the metrics
sMetrics Stats Arrays to print

Definition at line 34 of file MetroCollectStats.cc.

Here is the call graph for this function: