RodionGork commented on a change in pull request #491: GRIFFIN-244 Get metrics
by instance
URL: https://github.com/apache/griffin/pull/491#discussion_r270732965
##########
File path:
service/src/main/java/org/apache/griffin/core/metric/MetricStoreImpl.java
##########
@@ -206,4 +208,14 @@ private static String buildBasicAuthString(String user,
String password) {
return String.format("Basic %s", Base64.getEncoder().encodeToString(
auth.getBytes()));
}
+
+ @Override
+ public MetricValue getMetric(String applicationId) throws IOException {
+ Map<String, String> map =new HashMap<>();
+ map.put("q", "applicationId:"+applicationId);
Review comment:
`Collections.singletonMap()` probably can be used
----------------------------------------------------------------
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