NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
DiskMetrics class, that is responsible for collecting and managing disk metrics. More...
#include <DiskMetrics.hpp>
Public Member Functions | |
DiskMetrics () | |
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 DiskMetrics &rhs) const |
bool | operator!= (const DiskMetrics &rhs) const |
Static Public Member Functions | |
static Configurations::SchemaTypePtr | getSchemaType (const std::string &prefix) |
Returns the schema of the class with a given prefix. More... | |
static SchemaPtr | getSchema (const std::string &prefix) |
Returns the schema of the class with a given prefix. More... | |
Public Attributes | |
WorkerId | nodeId |
uint64_t | timestamp |
uint64_t | fBsize |
uint64_t | fFrsize |
uint64_t | fBlocks |
uint64_t | fBfree |
uint64_t | fBavail |
DiskMetrics class, that is responsible for collecting and managing disk metrics.
NES::Monitoring::DiskMetrics::DiskMetrics | ( | ) |
|
static |
Returns the schema of the class with a given prefix.
prefix |
References NES::Schema::createFromSchemaType(), and getSchemaType().
Referenced by readFromBuffer(), NES::TEST_F(), and writeToBuffer().
|
static |
Returns the schema of the class with a given prefix.
prefix |
Referenced by getSchema(), and NES::Monitoring::MetricUtils::getSchemaFromCollectorType().
bool NES::Monitoring::DiskMetrics::operator!= | ( | const DiskMetrics & | rhs | ) | const |
bool NES::Monitoring::DiskMetrics::operator== | ( | const DiskMetrics & | rhs | ) | const |
void NES::Monitoring::DiskMetrics::readFromBuffer | ( | Runtime::TupleBuffer & | buf, |
uint64_t | tupleIndex | ||
) |
Parses a metrics objects from a TupleBuffer..
buf | the tuple buffer |
the | tuple index indicating the location of the tuple |
References NES::Runtime::MemoryLayouts::RowLayout::create(), fBavail, fBfree, fBlocks, fBsize, fFrsize, NES::Runtime::TupleBuffer::getBufferSize(), getSchema(), nodeId, and timestamp.
Referenced by NES::Monitoring::readFromBuffer().
nlohmann::json NES::Monitoring::DiskMetrics::toJson | ( | ) | const |
void NES::Monitoring::DiskMetrics::writeToBuffer | ( | Runtime::TupleBuffer & | buf, |
uint64_t | tupleIndex | ||
) | const |
Writes a metrics objects to the given TupleBuffer and index.
buf | the tuple buffer |
tupleIndex | the index indication its location in the buffer |
References NES::Runtime::MemoryLayouts::RowLayout::create(), fBavail, fBfree, fBlocks, fBsize, fFrsize, NES::Runtime::TupleBuffer::getBufferSize(), NES::Runtime::TupleBuffer::getNumberOfTuples(), getSchema(), NES_ASSERT, nodeId, NES::Runtime::TupleBuffer::setNumberOfTuples(), and timestamp.
Referenced by NES::Monitoring::writeToBuffer().
uint64_t NES::Monitoring::DiskMetrics::fBavail |
Referenced by NES::MetricValidator::isValid(), operator==(), readFromBuffer(), toJson(), and writeToBuffer().
uint64_t NES::Monitoring::DiskMetrics::fBfree |
Referenced by operator==(), readFromBuffer(), toJson(), and writeToBuffer().
uint64_t NES::Monitoring::DiskMetrics::fBlocks |
Referenced by operator==(), readFromBuffer(), toJson(), and writeToBuffer().
uint64_t NES::Monitoring::DiskMetrics::fBsize |
Referenced by operator==(), readFromBuffer(), toJson(), and writeToBuffer().
uint64_t NES::Monitoring::DiskMetrics::fFrsize |
Referenced by operator==(), readFromBuffer(), toJson(), and writeToBuffer().
WorkerId NES::Monitoring::DiskMetrics::nodeId |
uint64_t NES::Monitoring::DiskMetrics::timestamp |
Referenced by operator==(), readFromBuffer(), toJson(), and writeToBuffer().