Hey!
We are using Elasticsearch 7.17 + the corresponding transport client.
I try to calculate the consumed disk space from Elasticsearch without the cat API and came up with this solution (documentation):
curl -H 'Content-type: application/json' -XGET 'http://localhost/_all/_stats/store?level=cluster'
Which works perfectly fine when using curl.
So, I want to mimic that behavior with the java transport client with the IndicesStatsRequest
but it seems, the query parameter level
does not exist there. All other query parameters mentioned in the documentation are present (indicesStatsRequest.fieldDataFields()
, indicesStatsRequest.groups()
,... to name a view)
My question is, how can add the level
query parameter to the request using the java transport client?
Thanks in advance