#include <fstream>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <MetroCollect/MetricsController.h>
Go to the source code of this file.
◆ generateMetrics()
Generate metric request to give to the MetricsController.
- Returns
- auto requested metrics list
Definition at line 76 of file MetroCollectFile.cc.
◆ getAllFieldNames()
Get fields name of all metrics.
- Template Parameters
-
- Parameters
-
| metricsArray | MetricArray to get metric names from |
- Returns
- Array of metric names
Definition at line 96 of file MetroCollectFile.cc.
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
MetroCollectFile main function.
MetroCollect's main function.
- Parameters
-
| argc | Argument count (expected: 3) |
| argv | Arguments values (sampling interval; iteration count; file path to write to) |
- Returns
- int Return code
Definition at line 162 of file MetroCollectFile.cc.
◆ printMetricsStats()
Print metric stats on screen.
- Parameters
-
| names | array of names of the metrics |
| s | Metrics Stats Arrays to print |
Definition at line 55 of file MetroCollectFile.cc.
◆ printMetricsValues()
template<typename T , typename S , typename U >
Print metrics on screen.
- Template Parameters
-
| T | Type of first MetricsArray |
| S | Type of second MetricsArray |
| U | Type of third MetricsArray |
- Parameters
-
| names | array of names of the metrics |
| m1 | First MetricsDataArray: earlier values |
| m2 | Second MetricsDataArray: latest values |
| d | Third MetricsDiffArray: differences |
Definition at line 41 of file MetroCollectFile.cc.