priyeshkaratha commented on code in PR #9413:
URL: https://github.com/apache/ozone/pull/9413#discussion_r2621761076
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/ReconUtils.java:
##########
@@ -847,4 +847,34 @@ public static String constructObjectPathWithPrefix(long...
ids) {
}
return pathBuilder.toString();
}
+
+ public static Map<String, Object> getMetricsData(List<Map<String, Object>>
metrics, String beanName) {
+ if (metrics == null || StringUtils.isEmpty(beanName)) {
+ return null;
+ }
+ for (Map<String, Object> item :metrics) {
+ if (beanName.equals(item.get("name"))) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ public static long extractMetricValue(Map<String, Object> metrics, String
keyName) {
Review Comment:
Addressed.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]