Skip to content

Commit

Permalink
fix: change interval to hour to avoid hitting bucket limit
Browse files Browse the repository at this point in the history
  • Loading branch information
salvatore-campagna committed Aug 31, 2023
1 parent 8c1cea4 commit a3b5528
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public void testTermsByTsid() {

public void testDateHistogramByTsid() {
final TimeSeriesAggregationBuilder timeSeries = new TimeSeriesAggregationBuilder("ts").subAggregation(
new DateHistogramAggregationBuilder("date_histogram").field("@timestamp").calendarInterval(DateHistogramInterval.MINUTE)
new DateHistogramAggregationBuilder("date_histogram").field("@timestamp").calendarInterval(DateHistogramInterval.HOUR)
);
final SearchResponse aggregationResponse = client().prepareSearch("index").addAggregation(timeSeries).setSize(0).get();
final InternalTimeSeries ts = (InternalTimeSeries) aggregationResponse.getAggregations().asList().get(0);
Expand Down

0 comments on commit a3b5528

Please sign in to comment.