NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
: This class is responsible for handling requests related to fetching information regarding monitoring data. More...
#include <MonitoringService.hpp>
Public Member Functions | |
MonitoringService (TopologyPtr topology, RequestHandlerServicePtr requestHandlerService, Catalogs::Query::QueryCatalogPtr queryCatalog) | |
MonitoringService (TopologyPtr topology, RequestHandlerServicePtr requestHandlerService, Catalogs::Query::QueryCatalogPtr queryCatalog, bool enableMonitoring) | |
nlohmann::json | registerMonitoringPlanToAllNodes (Monitoring::MonitoringPlanPtr monitoringPlan) |
Registers a monitoring plan at all nodes. A MonitoringPlan indicates which metrics have to be sampled at a node. More... | |
nlohmann::json | requestMonitoringDataAsJson (WorkerId nodeId) |
Requests from a remote worker node its monitoring data. More... | |
nlohmann::json | requestMonitoringDataFromAllNodesAsJson () |
Requests from all remote worker nodes for monitoring data. More... | |
nlohmann::json | requestNewestMonitoringDataFromMetricStoreAsJson () |
Requests from all remote worker nodes for monitoring data. More... | |
nlohmann::json | startMonitoringStreams () |
Starts the monitoring streams for monitoring data. More... | |
nlohmann::json | stopMonitoringStreams () |
Starts the monitoring streams for monitoring data. More... | |
nlohmann::json | getMonitoringStreams () |
Gets the monitoring streams for monitoring data. More... | |
const Monitoring::MonitoringManagerPtr | getMonitoringManager () const |
Getter for MonitoringManager. More... | |
bool | isMonitoringEnabled () const |
Returns bool if monitoring is enabled or not. More... | |
: This class is responsible for handling requests related to fetching information regarding monitoring data.
NES::MonitoringService::MonitoringService | ( | TopologyPtr | topology, |
RequestHandlerServicePtr | requestHandlerService, | ||
Catalogs::Query::QueryCatalogPtr | queryCatalog | ||
) |
NES::MonitoringService::MonitoringService | ( | TopologyPtr | topology, |
RequestHandlerServicePtr | requestHandlerService, | ||
Catalogs::Query::QueryCatalogPtr | queryCatalog, | ||
bool | enableMonitoring | ||
) |
References NES_DEBUG.
const Monitoring::MonitoringManagerPtr NES::MonitoringService::getMonitoringManager | ( | ) | const |
Getter for MonitoringManager.
nlohmann::json NES::MonitoringService::getMonitoringStreams | ( | ) |
Gets the monitoring streams for monitoring data.
bool NES::MonitoringService::isMonitoringEnabled | ( | ) | const |
Returns bool if monitoring is enabled or not.
nlohmann::json NES::MonitoringService::registerMonitoringPlanToAllNodes | ( | Monitoring::MonitoringPlanPtr | monitoringPlan | ) |
Registers a monitoring plan at all nodes. A MonitoringPlan indicates which metrics have to be sampled at a node.
monitoringPlan |
References backward::details::move().
nlohmann::json NES::MonitoringService::requestMonitoringDataAsJson | ( | WorkerId | nodeId | ) |
Requests from a remote worker node its monitoring data.
References NES_DEBUG, and nodeId.
Referenced by requestMonitoringDataFromAllNodesAsJson().
nlohmann::json NES::MonitoringService::requestMonitoringDataFromAllNodesAsJson | ( | ) |
Requests from all remote worker nodes for monitoring data.
References NES_INFO, nodeId, NES::Monitoring::RegistrationMetric, requestMonitoringDataAsJson(), NES::Monitoring::MetricUtils::toJson(), and NES::Monitoring::toString().
nlohmann::json NES::MonitoringService::requestNewestMonitoringDataFromMetricStoreAsJson | ( | ) |
Requests from all remote worker nodes for monitoring data.
References NES_INFO, nodeId, and NES::Monitoring::MetricUtils::toJson().
nlohmann::json NES::MonitoringService::startMonitoringStreams | ( | ) |
Starts the monitoring streams for monitoring data.
nlohmann::json NES::MonitoringService::stopMonitoringStreams | ( | ) |
Starts the monitoring streams for monitoring data.