@@ -81,14 +81,14 @@ std::vector<SerializedResponseNode> FlowInformation::serialize() {
8181 .children = {
8282 {.name = " id" , .value = std::string{processor->getUUIDStr ()}},
8383 {.name = " groupId" , .value = processor->getProcessGroupUUIDStr ()},
84- {.name = " bytesRead" , .value = metrics->bytes_read .load ()},
85- {.name = " bytesWritten" , .value = metrics->bytes_written .load ()},
86- {.name = " flowFilesIn" , .value = metrics->incoming_flow_files .load ()},
87- {.name = " flowFilesOut" , .value = metrics->transferred_flow_files .load ()},
88- {.name = " bytesIn" , .value = metrics->incoming_bytes .load ()},
89- {.name = " bytesOut" , .value = metrics->transferred_bytes .load ()},
90- {.name = " invocations" , .value = metrics->invocations .load ()},
91- {.name = " processingNanos" , .value = metrics->processing_nanos .load ()},
84+ {.name = " bytesRead" , .value = metrics->bytesRead () .load ()},
85+ {.name = " bytesWritten" , .value = metrics->bytesWritten () .load ()},
86+ {.name = " flowFilesIn" , .value = metrics->incomingFlowFiles () .load ()},
87+ {.name = " flowFilesOut" , .value = metrics->transferredFlowFiles () .load ()},
88+ {.name = " bytesIn" , .value = metrics->incomingBytes () .load ()},
89+ {.name = " bytesOut" , .value = metrics->transferredBytes () .load ()},
90+ {.name = " invocations" , .value = metrics->invocations () .load ()},
91+ {.name = " processingNanos" , .value = metrics->processingNanos () .load ()},
9292 {.name = " activeThreadCount" , .value = -1 },
9393 {.name = " terminatedThreadCount" , .value = -1 },
9494 {.name = " runStatus" , .value = (processor->isRunning () ? " Running" : " Stopped" )}
@@ -115,21 +115,21 @@ std::vector<PublishedMetric> FlowInformation::calculateMetrics() {
115115 continue ;
116116 }
117117 auto processor_metrics = processor->getMetrics ();
118- metrics.push_back ({" bytes_read" , gsl::narrow<double >(processor_metrics->bytes_read .load ()),
118+ metrics.push_back ({" bytes_read" , gsl::narrow<double >(processor_metrics->bytesRead () .load ()),
119119 {{" processor_uuid" , processor->getUUIDStr ()}, {" processor_name" , processor->getName ()}, {" metric_class" , " FlowInformation" }}});
120- metrics.push_back ({" bytes_written" , gsl::narrow<double >(processor_metrics->bytes_written .load ()),
120+ metrics.push_back ({" bytes_written" , gsl::narrow<double >(processor_metrics->bytesWritten () .load ()),
121121 {{" processor_uuid" , processor->getUUIDStr ()}, {" processor_name" , processor->getName ()}, {" metric_class" , " FlowInformation" }}});
122- metrics.push_back ({" flow_files_in" , gsl::narrow<double >(processor_metrics->incoming_flow_files .load ()),
122+ metrics.push_back ({" flow_files_in" , gsl::narrow<double >(processor_metrics->incomingFlowFiles () .load ()),
123123 {{" processor_uuid" , processor->getUUIDStr ()}, {" processor_name" , processor->getName ()}, {" metric_class" , " FlowInformation" }}});
124- metrics.push_back ({" flow_files_out" , gsl::narrow<double >(processor_metrics->transferred_flow_files .load ()),
124+ metrics.push_back ({" flow_files_out" , gsl::narrow<double >(processor_metrics->transferredFlowFiles () .load ()),
125125 {{" processor_uuid" , processor->getUUIDStr ()}, {" processor_name" , processor->getName ()}, {" metric_class" , " FlowInformation" }}});
126- metrics.push_back ({" bytes_in" , gsl::narrow<double >(processor_metrics->incoming_bytes .load ()),
126+ metrics.push_back ({" bytes_in" , gsl::narrow<double >(processor_metrics->incomingBytes () .load ()),
127127 {{" processor_uuid" , processor->getUUIDStr ()}, {" processor_name" , processor->getName ()}, {" metric_class" , " FlowInformation" }}});
128- metrics.push_back ({" bytes_out" , gsl::narrow<double >(processor_metrics->transferred_bytes .load ()),
128+ metrics.push_back ({" bytes_out" , gsl::narrow<double >(processor_metrics->transferredBytes () .load ()),
129129 {{" processor_uuid" , processor->getUUIDStr ()}, {" processor_name" , processor->getName ()}, {" metric_class" , " FlowInformation" }}});
130- metrics.push_back ({" invocations" , gsl::narrow<double >(processor_metrics->invocations .load ()),
130+ metrics.push_back ({" invocations" , gsl::narrow<double >(processor_metrics->invocations () .load ()),
131131 {{" processor_uuid" , processor->getUUIDStr ()}, {" processor_name" , processor->getName ()}, {" metric_class" , " FlowInformation" }}});
132- metrics.push_back ({" processing_nanos" , gsl::narrow<double >(processor_metrics->processing_nanos .load ()),
132+ metrics.push_back ({" processing_nanos" , gsl::narrow<double >(processor_metrics->processingNanos () .load ()),
133133 {{" processor_uuid" , processor->getUUIDStr ()}, {" processor_name" , processor->getName ()}, {" metric_class" , " FlowInformation" }}});
134134 metrics.push_back ({" is_running" , (processor->isRunning () ? 1.0 : 0.0 ),
135135 {{" processor_uuid" , processor->getUUIDStr ()}, {" processor_name" , processor->getName ()}, {" metric_class" , " FlowInformation" }}});
0 commit comments