Skip to content

Commit 12f57a3

Browse files
Fix data stream lifecycle type, to correctly handle downsampling. (#5593) (#5787)
1 parent 1d725f6 commit 12f57a3

File tree

6 files changed

+25
-104
lines changed

6 files changed

+25
-104
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 6 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 6 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 9 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/indices/_types/DataStreamLifecycle.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import { ByteSize } from '@_types/common'
2121
import { long } from '@_types/Numeric'
2222
import { Duration } from '@_types/Time'
23-
import { DataStreamLifecycleDownsampling } from '@indices/_types/DataStreamLifecycleDownsampling'
23+
import { DownsamplingRound } from '@indices/_types/DownsamplingRound'
2424

2525
/**
2626
* Data stream lifecycle denotes that a data stream is managed by the data stream lifecycle and contains the configuration.
@@ -33,9 +33,9 @@ export class DataStreamLifecycle {
3333
*/
3434
data_retention?: Duration
3535
/**
36-
* The downsampling configuration to execute for the managed backing index after rollover.
36+
* The list of downsampling rounds to execute as part of this downsampling configuration
3737
*/
38-
downsampling?: DataStreamLifecycleDownsampling
38+
downsampling?: DownsamplingRound[]
3939
/**
4040
* If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle
4141
* that's disabled (enabled: `false`) will have no effect on the data stream.

specification/indices/_types/DataStreamLifecycleDownsampling.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)