[Rollups] Support selection of calendar or fixed interval in date histogram agg #36306
Labels
enhancement
New value added to drive a business result
Feature:Rollups
Team:Kibana Management
Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Describe the feature:
Support changes in elastic/elasticsearch#33727, specifically for rollups.
ES UI tasks
calendar
orfixed
for their date histogram configuration.calendar
.1h
would have previously been treated as a calendar unit, so ask the user if they want to treat it as a calendar or fixed interval, and write it tocalendar_interval
orfixed_interval
based on their choice.2h
is always treated as a fixed interval, so do not offer user the choice between units and just write it tofixed_interval
.Examples of resulting rollup job date histogram configurations:
Calendar:
Fixed:
Coerced (user didn't specify an interval type, so
1h
is treated as calendar). We should continue supporting this for BWC, but new rollup jobs created with the revised Rollup Jobs Wizard should not have this format:Kibana App tasks
calendar_interval
orfixed_interval
in date histo aggs has the same information written to itstypeMeta
fieldcalendar_interval
,fixed_interval
, orinterval
. Some relevant files:fixed_interval: "1h"
and user inputs1d
, sendfixed_interval: "1d"
to the rollup search endpoint (instead ofinterval: "1d"
).interval: "1d"
in this case) should work, but we should think about what the user is going to want/expect when they query rollup docs.The text was updated successfully, but these errors were encountered: