Introduce downsampling configuration for data stream lifecycle (#97041)

This PR introduces downsampling configuration to the data stream lifecycle. Keep in mind downsampling implementation will come in a follow up PR. Configuration looks like this:
```
{
  "lifecycle": {
    "data_retention": "90d",
    "downsampling": [
      {
        "after": "1d",
        "fixed_interval": "2h"
      },
      { "after": "15d", "fixed_interval": "1d" },
      { "after": "30d", "fixed_interval": "1w" }
    ]
  }
}
```
We will also support using `null` to unset downsampling configuration during template composition:
```
{
  "lifecycle": {
    "data_retention": "90d",
    "downsampling": null
  }
}
```
This commit is contained in:
Mary Gouseti 2023-06-29 16:41:17 +03:00 committed by GitHub
parent 69ff7dfb20
commit f87c2c7758
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 564 additions and 121 deletions

View file

@ -371,6 +371,7 @@ module org.elasticsearch.server {
opens org.elasticsearch.common.logging to org.apache.logging.log4j.core;
exports org.elasticsearch.action.dlm;
exports org.elasticsearch.action.downsample;
provides java.util.spi.CalendarDataProvider with org.elasticsearch.common.time.IsoCalendarDataProvider;
provides org.elasticsearch.xcontent.ErrorOnUnknown with org.elasticsearch.common.xcontent.SuggestingErrorOnUnknown;