APISonar


org.graylog2.rest.resources.search.responses.SearchResponse.time

> org > graylog2 > rest > resources > search > responses > SearchResponse > time
org APIs graylog2 APIs rest APIs resources APIs search APIs responses APIs SearchResponse APIs time APIs

Example 1
protected SearchResponse buildSearchResponse(SearchResult sr) {
        SearchResponse result = new SearchResponse();
        result.query = sr.getOriginalQuery();
        result.builtQuery = sr.getBuiltQuery();
        result.usedIndices = sr.getUsedIndices();
        result.messages = sr.getResults();
        result.fields = sr.getFields();
        result.time = sr.took().millis();
        result.totalResults = sr.getTotalResults();

        return result;
    }