NebulaStream  0.6.213
NebulaStream is a data and application management framework for the internet of things
RuntimeMetrics.hpp File Reference
Include dependency graph for RuntimeMetrics.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  NES::Monitoring::RuntimeMetrics
 Wrapper class to represent the metrics read from the OS about dynamically changing data represented in other metric classes. More...
 

Namespaces

 NES
 This exception represents a network error.
 
 NES::Configurations
 
 NES::Monitoring
 

Typedefs

using NES::Monitoring::RuntimeNesMetricsPtr = std::shared_ptr< RuntimeMetrics >
 

Functions

class NES::Monitoring::CpuMetrics NES::Monitoring::__attribute__ ((packed))
 
 RuntimeMetrics ()
 
void writeToBuffer (Runtime::TupleBuffer &buf, uint64_t tupleIndex) const
 Writes a metrics objects to the given TupleBuffer and index. More...
 
void readFromBuffer (Runtime::TupleBuffer &buf, uint64_t tupleIndex)
 Parses a metrics objects from a TupleBuffer.. More...
 
nlohmann::json toJson () const
 Returns the metrics as json. More...
 
bool operator== (const RuntimeMetrics &rhs) const
 
bool operator!= (const RuntimeMetrics &rhs) const
 
void NES::Monitoring::writeToBuffer (const RuntimeMetrics &metrics, Runtime::TupleBuffer &buf, uint64_t tupleIndex)
 Writes metrics objects to a given Schema and TupleBuffer. More...
 
void NES::Monitoring::readFromBuffer (RuntimeMetrics &metrics, Runtime::TupleBuffer &buf, uint64_t tupleIndex)
 Parses metrics objects from a given Schema and TupleBuffer. More...
 
nlohmann::json NES::Monitoring::asJson (const RuntimeMetrics &metrics)
 Parses the metric to JSON. More...
 

Variables

uint64_t nodeId
 
uint64_t wallTimeNs
 
uint64_t memoryUsageInBytes
 
uint64_t cpuLoadInJiffies
 
uint64_t blkioBytesRead
 
uint64_t blkioBytesWritten
 
uint64_t batteryStatusInPercent
 
uint64_t latCoord
 
uint64_t longCoord
 

Function Documentation

◆ operator!=()

bool __attribute__::operator!= ( const RuntimeMetrics rhs) const

◆ operator==()

bool __attribute__::operator== ( const RuntimeMetrics rhs) const

◆ readFromBuffer()

void __attribute__::readFromBuffer ( Runtime::TupleBuffer &  buf,
uint64_t  tupleIndex 
)

Parses a metrics objects from a TupleBuffer..

Parameters
bufthe tuple buffer
thetuple index indicating the location of the tuple

◆ RuntimeMetrics()

__attribute__::RuntimeMetrics ( )

◆ toJson()

nlohmann::json __attribute__::toJson ( ) const

Returns the metrics as json.

Returns
Json containing the metrics

◆ writeToBuffer()

void __attribute__::writeToBuffer ( Runtime::TupleBuffer &  buf,
uint64_t  tupleIndex 
) const

Writes a metrics objects to the given TupleBuffer and index.

Parameters
bufthe tuple buffer
tupleIndexthe index indication its location in the buffer

Variable Documentation

◆ batteryStatusInPercent

uint64_t batteryStatusInPercent

◆ blkioBytesRead

uint64_t blkioBytesRead

◆ blkioBytesWritten

uint64_t blkioBytesWritten

◆ cpuLoadInJiffies

uint64_t cpuLoadInJiffies

◆ latCoord

uint64_t latCoord

◆ longCoord

uint64_t longCoord

◆ memoryUsageInBytes

uint64_t memoryUsageInBytes

◆ nodeId

uint64_t nodeId

◆ wallTimeNs

uint64_t wallTimeNs