Skip to content

Commit

Permalink
SAI-5303: Fix metrics api caller request property formatting/missing …
Browse files Browse the repository at this point in the history
…metrics (#243)
  • Loading branch information
magibney authored Dec 17, 2024
1 parent b7ac84d commit e716b58
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1111,11 +1111,10 @@ private abstract static class MetricsByPrefixApiCaller extends MetricsApiCaller
@Override
protected String buildQueryString(ResultContext resultContext) {
String propertyClause =
String.join(
"&property=",
Arrays.stream(properties)
.map(p -> URLEncoder.encode(p, StandardCharsets.UTF_8))
.collect(Collectors.toSet()));
Arrays.stream(properties)
.map(p -> URLEncoder.encode(p, StandardCharsets.UTF_8))
.distinct()
.collect(Collectors.joining(",", "&property=", ""));
return String.format(
Locale.ROOT,
"wt=json&indent=false&compact=true&group=%s&prefix=%s%s",
Expand Down

0 comments on commit e716b58

Please sign in to comment.