Search in sources :

Example 1 with DiskUsageResponse

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"));
}
Also used : DiskUsageResponse(co.elastic.clients.elasticsearch.indices.DiskUsageResponse) Test(org.junit.Test)

Aggregations

DiskUsageResponse (co.elastic.clients.elasticsearch.indices.DiskUsageResponse)1 Test (org.junit.Test)1