tibrewalpratik17 commented on code in PR #14807:
URL: https://github.com/apache/pinot/pull/14807#discussion_r1914537675


##########
pinot-core/src/main/java/org/apache/pinot/core/transport/AsyncQueryResponse.java:
##########
@@ -145,6 +146,21 @@ public String getServerStats() {
     return stringBuilder.toString();
   }
 
+  @Override
+  public Map<String, Map<String, Integer>> getServerStatsMap() {
+    return _responseMap.entrySet().stream()
+        .collect(Collectors.toMap(
+            entry -> entry.getKey().getShortName(),

Review Comment:
   The key here is the host right? is there a way to make it more explicit? 
Maybe instead of using Map<String, Map<String, Integer>> we can use Map<String, 
ServerStatsInfo> something and use POJO to easily extract the metric values. 



-- 
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]

Reply via email to