Fledge
An open source edge computing platform for industrial users
PerformanceMonitor Class Reference

Class to handle the performance monitors. More...

#include <perfmonitors.h>

Inheritance diagram for PerformanceMonitor:

Public Member Functions

 PerformanceMonitor (const std::string &service, StorageClient *storage)
 Constructor for the performance monitors. More...
 
virtual void writeData (const std::string &table, const InsertValues &values)
 
virtual ~PerformanceMonitor ()
 Destructor for the performance monitor.
 
void collect (const std::string &name, long value)
 Collect a performance monitor. More...
 
void setCollecting (bool state)
 Set the collection state of the performance monitors. More...
 
void writeThread ()
 The thread that runs to write database values.
 
bool isCollecting ()
 

Detailed Description

Class to handle the performance monitors.

Constructor & Destructor Documentation

◆ PerformanceMonitor()

PerformanceMonitor::PerformanceMonitor ( const std::string &  service,
StorageClient storage 
)

Constructor for the performance monitors.

Parameters
serviceThe name of the service
storagePoint to the storage client class for the service

Member Function Documentation

◆ collect()

void PerformanceMonitor::collect ( const std::string &  name,
long  value 
)
inline

Collect a performance monitor.

Parameters
nameName of the monitor
calueValue of the monitor

◆ setCollecting()

void PerformanceMonitor::setCollecting ( bool  state)

Set the collection state of the performance monitors.

Parameters
stateThe required collection state

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