@Override
    public SystemInfoResult getSystemInfo(final Map<String, String> params) {
        final int limit = NullSafe.getOrElse(
                params,
                map -> map.get(PARAM_NAME_LIMIT),
                Integer::valueOf,
                10_000);
        final Long requestedStreamId = NullSafe.get(params, map -> map.get(PARAM_NAME_STREAM_ID), Long::valueOf);
        final long shardId = NullSafe.getAsOptional(
                        params,
                        map -> map.get(PARAM_NAME_SHARD_ID),
                        Long::parseLong)
                .orElseThrow(() ->
                        new BadRequestException(
                                "You must provide a shard ID using the query parameter " + PARAM_NAME_SHARD_ID));
        return getSystemInfo(shardId, limit, requestedStreamId);
    }
Provides system information for inspecting index shards.
Gets counts of documents grouped by stream id.
Requires the shardId as a query parameter.
stroom-index/stroom-index-impl/src/main/java/stroom/index/impl/IndexSystemInfo.java