use of co.elastic.clients.elasticsearch.indices.DiskUsageResponse in project elasticsearch-java by elastic.
the class RequestTest method testValueBodyResponse.
@Test
public void testValueBodyResponse() throws Exception {
DiskUsageResponse resp = client.indices().diskUsage(b -> b.index("*").allowNoIndices(true).runExpensiveTasks(true));
assertNotNull(resp.valueBody().toJson().asJsonObject().get("_shards"));
}
Aggregations