MetroCollect  2.3.4
SnapInterface::SnapStreamInterface::MetricsPackage Struct Reference

Strcut to store Snap metric objects and metric data to make it faster to send them to Snap. More...

#include <SnapStreamInterface.h>

Collaboration diagram for SnapInterface::SnapStreamInterface::MetricsPackage:

Classes

struct  TimedMetrics
 Simple array of metrics with a timestamp. More...
 

Public Member Functions

void clear (size_t metricsCount)
 Reinitializes the receiver and allocates space for metrics. More...
 

Public Attributes

std::vector< Plugin::Metric > computedMetrics
 Cache for Snap metrics. More...
 
std::vector< Plugin::Metric * > metricsToSend
 Array of pointers to Snap metrics to be sent. More...
 
std::unique_ptr< TimedMetricscurrentMetrics
 Earlier values that may be sent. More...
 
std::unique_ptr< TimedMetricsnextMetrics
 Latest values kept to be sent on the next iteration. More...
 
std::vector< size_t > metricsTimeout
 Sub-sampling counters for constant metrics. More...
 
std::vector< size_t * > metricsTimeoutPointer
 Array to match metrics to their sub-sampling counter (one is shared for all statistics) More...
 
std::vector< bool > secondaryMetrics
 Array to mark the most important metric stat (average) More...
 

Detailed Description

Strcut to store Snap metric objects and metric data to make it faster to send them to Snap.

Definition at line 49 of file SnapStreamInterface.h.

Member Function Documentation

◆ clear()

void SnapInterface::SnapStreamInterface::MetricsPackage::clear ( size_t  metricsCount)
inline

Reinitializes the receiver and allocates space for metrics.

Parameters
metricsCountThe total number of metrics that can be sent

Definition at line 71 of file SnapStreamInterface.h.

Here is the caller graph for this function:

Member Data Documentation

◆ computedMetrics

std::vector<Plugin::Metric> SnapInterface::SnapStreamInterface::MetricsPackage::computedMetrics

Cache for Snap metrics.

Definition at line 58 of file SnapStreamInterface.h.

◆ currentMetrics

std::unique_ptr<TimedMetrics> SnapInterface::SnapStreamInterface::MetricsPackage::currentMetrics

Earlier values that may be sent.

Definition at line 60 of file SnapStreamInterface.h.

◆ metricsTimeout

std::vector<size_t> SnapInterface::SnapStreamInterface::MetricsPackage::metricsTimeout

Sub-sampling counters for constant metrics.

Definition at line 62 of file SnapStreamInterface.h.

◆ metricsTimeoutPointer

std::vector<size_t*> SnapInterface::SnapStreamInterface::MetricsPackage::metricsTimeoutPointer

Array to match metrics to their sub-sampling counter (one is shared for all statistics)

Definition at line 63 of file SnapStreamInterface.h.

◆ metricsToSend

std::vector<Plugin::Metric*> SnapInterface::SnapStreamInterface::MetricsPackage::metricsToSend

Array of pointers to Snap metrics to be sent.

Definition at line 59 of file SnapStreamInterface.h.

◆ nextMetrics

std::unique_ptr<TimedMetrics> SnapInterface::SnapStreamInterface::MetricsPackage::nextMetrics

Latest values kept to be sent on the next iteration.

Definition at line 61 of file SnapStreamInterface.h.

◆ secondaryMetrics

std::vector<bool> SnapInterface::SnapStreamInterface::MetricsPackage::secondaryMetrics

Array to mark the most important metric stat (average)

Definition at line 64 of file SnapStreamInterface.h.


The documentation for this struct was generated from the following file: