final Map<String, Long> result = Maps.newHashMap();
result.put("throughput", 0L);
final HashMap<String,Counter> currentStreamThroughput = throughputStats.getCurrentStreamThroughput();
if (currentStreamThroughput != null) {
final Counter counter = currentStreamThroughput.get(streamId);
if (counter != null && isPermitted(RestPermissions.STREAMS_READ, streamId))
result.put("throughput", counter.get());
}
return Response.ok().entity(json(result)).build();
}