use of org.graylog.plugins.views.search.rest.QueryDTO in project graylog2-server by Graylog2.
the class SearchDriver method allMessagesJson.
private static String allMessagesJson(String queryId, String messageListId, TimeRange timeRange) {
MessageList messageList = MessageList.builder().id(messageListId).build();
QueryDTO q = QueryDTO.builder().id(queryId).query(ElasticsearchQueryString.of("")).timerange(timeRange).searchTypes(ImmutableSet.of(messageList)).build();
SearchDTO s = SearchDTO.builder().id(new ObjectId().toHexString()).queries(ImmutableSet.of(q)).build();
return JsonUtils.toJsonString(s);
}
Aggregations