NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
#include <CpuCollector.hpp>
Public Member Functions | |
CpuCollector () | |
bool | fillBuffer (Runtime::TupleBuffer &tupleBuffer) override |
Fill a buffer with a given metric. More... | |
MetricCollectorType | getType () override |
Returns the type of metric collector. More... | |
SchemaPtr | getSchema () override |
Return the schema representing the metrics gathered by the collector. More... | |
const MetricPtr | readMetric () const override |
Read the CPU metrics based on the underlying utility systems reader and return the metrics. More... | |
![]() | |
virtual | ~MetricCollector ()=default |
WorkerId | getWorkerId () const |
void | setNodeId (const WorkerId nodeId) |
Additional Inherited Members | |
![]() | |
MetricCollector () | |
MetricCollector (WorkerId workerId) | |
MetricCollector (const MetricCollector &)=default | |
MetricCollector (MetricCollector &&)=default | |
MetricCollector & | operator= (const MetricCollector &)=default |
MetricCollector & | operator= (MetricCollector &&)=default |
The metric collector class for CPU metrics. Metric collectors are required for the integration with data sources.
|
explicit |
References NES_INFO.
|
overridevirtual |
Fill a buffer with a given metric.
tupleBuffer | The tuple buffer |
Implements NES::Monitoring::MetricCollector.
References NES::Monitoring::asJson(), NES::Monitoring::MetricCollector::getWorkerId(), NES_ERROR, NES_TRACE, NES::Monitoring::CpuMetricsWrapper::setNodeId(), and NES::Monitoring::writeToBuffer().
|
overridevirtual |
Return the schema representing the metrics gathered by the collector.
Implements NES::Monitoring::MetricCollector.
|
overridevirtual |
Returns the type of metric collector.
Implements NES::Monitoring::MetricCollector.
References NES::Monitoring::CPU_COLLECTOR.
|
overridevirtual |
Read the CPU metrics based on the underlying utility systems reader and return the metrics.
Implements NES::Monitoring::MetricCollector.
References NES::Monitoring::MetricCollector::getWorkerId(), backward::details::move(), NES::Monitoring::CpuMetricsWrapper::setNodeId(), and NES::Monitoring::WrappedCpuMetrics.