APISonar


org.graylog2.rest.models.search.responses.TermsHistogramResult.time

> org > graylog2 > rest > models > search > responses > TermsHistogramResult > time
org APIs graylog2 APIs rest APIs models APIs search APIs responses APIs TermsHistogramResult APIs time APIs

Example 1
public ComputationResult compute() {
        String filter = null;
        if (!isNullOrEmpty(streamId)) {
            filter = "streams:" + streamId;
        }

        final Sorting.Direction sortDirection = getSortingDirection(sortOrder);
        final TermsHistogramResult termsHistogram = buildTermsHistogramResult(searches.termsHistogram(field, stackedFields, limit, query, filter, timeRange, interval, sortDirection));

        return new ComputationResult(termsHistogram, termsHistogram.time());
    }