arpadboda commented on a change in pull request #734: MINIFICPP-1157 Implement 
lightweight C2 heartbeat.
URL: https://github.com/apache/nifi-minifi-cpp/pull/734#discussion_r378147512
 
 

 ##########
 File path: libminifi/src/c2/C2Agent.cpp
 ##########
 @@ -553,6 +577,20 @@ void C2Agent::handle_describe(const C2ContentResponse 
&resp) {
     }
     response.addPayload(std::move(options));
 
+    auto reporter = 
std::dynamic_pointer_cast<state::response::NodeReporter>(update_sink_);
+    if (reporter != nullptr) {
+        std::vector<std::shared_ptr<state::response::ResponseNode>> 
metrics_vec;
+
+        C2Payload agentInfo(Operation::ACKNOWLEDGE, resp.ident, false, true);
+        agentInfo.setLabel("agentInfo");
+
+        reporter->getManifestNodes(metrics_vec, 0);
+        for (auto metric : metrics_vec) {
 
 Review comment:
   const auto& pls

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to