MetroCollect  2.3.4
MetroCollect::MetricsSource::SourceEthtool::InterfaceInfo Struct Reference

Class to store the details and metrics names of a network interface. More...

#include <SourceEthtool.h>

Collaboration diagram for MetroCollect::MetricsSource::SourceEthtool::InterfaceInfo:

Classes

struct  NameAndIndex
 Name of a metric. More...
 

Public Member Functions

 InterfaceInfo (const char *aName)
 Construct a new Interface Info object. More...
 
 InterfaceInfo ()=delete
 Deleted default constructor. More...
 

Public Attributes

std::string name
 Name of the interface. More...
 
std::string driver
 Driver name of the interface. More...
 
size_t fieldCount
 Number of metrics of the interface. More...
 
std::vector< NameAndIndexfieldNames
 Names of the metrics. More...
 
std::vector< size_t > fieldIndexes
 Indexes of relevant metrics (some may be skipped) More...
 
struct ifreq ifr
 Ethtool data structure of this interface. More...
 
EthtoolPointer< struct ethtool_stats, uint64_t > statsValues
 Ethtool statistics array. More...
 

Detailed Description

Class to store the details and metrics names of a network interface.

Definition at line 199 of file SourceEthtool.h.

Constructor & Destructor Documentation

◆ InterfaceInfo() [1/2]

MetroCollect::MetricsSource::SourceEthtool::InterfaceInfo::InterfaceInfo ( const char *  aName)
explicit

Construct a new Interface Info object.

Definition at line 35 of file SourceEthtool.cc.

◆ InterfaceInfo() [2/2]

MetroCollect::MetricsSource::SourceEthtool::InterfaceInfo::InterfaceInfo ( )
delete

Deleted default constructor.

Member Data Documentation

◆ driver

std::string MetroCollect::MetricsSource::SourceEthtool::InterfaceInfo::driver

Driver name of the interface.

Definition at line 209 of file SourceEthtool.h.

◆ fieldCount

size_t MetroCollect::MetricsSource::SourceEthtool::InterfaceInfo::fieldCount

Number of metrics of the interface.

Definition at line 210 of file SourceEthtool.h.

◆ fieldIndexes

std::vector<size_t> MetroCollect::MetricsSource::SourceEthtool::InterfaceInfo::fieldIndexes

Indexes of relevant metrics (some may be skipped)

Definition at line 212 of file SourceEthtool.h.

◆ fieldNames

std::vector<NameAndIndex> MetroCollect::MetricsSource::SourceEthtool::InterfaceInfo::fieldNames

Names of the metrics.

Definition at line 211 of file SourceEthtool.h.

◆ ifr

struct ifreq MetroCollect::MetricsSource::SourceEthtool::InterfaceInfo::ifr

Ethtool data structure of this interface.

Definition at line 213 of file SourceEthtool.h.

◆ name

std::string MetroCollect::MetricsSource::SourceEthtool::InterfaceInfo::name

Name of the interface.

Definition at line 208 of file SourceEthtool.h.

◆ statsValues

EthtoolPointer<struct ethtool_stats, uint64_t> MetroCollect::MetricsSource::SourceEthtool::InterfaceInfo::statsValues

Ethtool statistics array.

Definition at line 215 of file SourceEthtool.h.


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